Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it doesn't work aws-amplify #21

Open
nishidashib opened this issue Oct 12, 2018 · 3 comments
Open

it doesn't work aws-amplify #21

nishidashib opened this issue Oct 12, 2018 · 3 comments

Comments

@nishidashib
Copy link

nishidashib commented Oct 12, 2018

$ git clone https://github.com/fuse-box/fuse-box-vue-seed
$  rm package-lock.json
$ yarn
$ yarn add aws-amplify

App.vue

<template>
  <div>
    <form @submit.stop.prevent="signIn" method="post">
      <input type="email" placeholder="Email" v-model="email" required>
      <input type="password" placeholder="Password" v-model="password" required>
      <input type="submit" value="Submit">
    </form>
  </div>
</template>
<script>
  import Amplify from 'aws-amplify';
  console.log(Amplify)
  export default {
    data() {
      return {
        email: '',
        password: '',
      };
    },
    methods: {
      // signIn () {
      // },
    }
  }
</script>
$ rm -rf .fusebox/
$ yarn start

 → WARNING The contents of /node_modules/aws-sdk/lib/region_config_data.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/metadata.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/sts-2011-06-15.min.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/sts-2011-06-15.paginators.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/cognito-identity-2014-06-30.min.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/cognito-identity-2014-06-30.paginators.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/@aws-amplify/core/package.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/mobileanalytics-2014-06-05.min.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/pinpoint-2016-12-01.min.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/kinesis-2013-12-02.min.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/kinesis-2013-12-02.paginators.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/kinesis-2013-12-02.waiters2.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/s3-2006-03-01.min.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/s3-2006-03-01.paginators.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/s3-2006-03-01.waiters2.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/runtime.lex-2016-11-28.min.json weren't loaded. Missing a plugin?
  → WARNING The contents of /node_modules/aws-sdk/apis/runtime.lex-2016-11-28.paginators.json weren't loaded. Missing a plugin?

fuse.js is not changed.
webpack is ok, but i want to use fuse-box.
what is wrong??

fuse-box 3.5.0
console errror Uncaught Package not found domain :[email protected]:616 
@nchanged
Copy link
Contributor

Well it kind of makes a hint that you are missing a JSON plugin
Add it to the chain

@nishidashib
Copy link
Author

nishidashib commented Oct 13, 2018

@nchanged

Thank you.
i add a JSON plugin to the chain, then WARNING was not displayed.
but an error occurred after building

2018-10-14 4 10 37

fuse-box: 3.5.0
yarn: 1.10.1
node: 10.11.0

my test repo: https://github.com/nishidashib/amplify-not-working
Please tell me the cause...

@nishidashib
Copy link
Author

nishidashib commented Oct 13, 2018

@nchanged

if i comment out the follow in index.vendor.js

:line 19255 
// util.domain = require('domain');

line 28687 
// var dgram = require('dgram');  

line 75166-75170
//   SAXStream.prototype = Object.create(Stream.prototype, {
//     constructor: {
//       value: SAXStream
//     }
//   })

it looks like aws-amplify works

2018-10-14 6 54 37

Please tell me the cause...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants