fuse-box / fuse-box-vue-seed

Get started with Vue.js using FuseBox module loader and bundler
MIT License
74 stars 13 forks source link

it doesn't work aws-amplify #21

Open nishidashib opened 5 years ago

nishidashib commented 5 years ago
$ 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 :zen-observable@0.8.9:616 
nchanged commented 5 years ago

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

nishidashib commented 5 years ago

@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 commented 5 years ago

@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...