NuxtでAWS amplifyを使用したいので Amplify Docs を見ながらインストールをしました。
amplify init npm install aws-amplify @aws-amplify/ui-vue npm run dev
としたところ以下のようなエラーが出てしまいました。(amplifyを使用する前まではエラーは出てませんでした。)You may need an appropriate loader
こちらのエラーの解決方法を教えていただきたいです。
ERROR Failed to compile with 2 errors 3:06:48 PM error in ./node_modules/camelcase-keys/index.js Module parse failed: Unexpected token (33:2) You may need an appropriate loader to handle this file type. | deep: false, | pascalCase: false, | ...options | }; | @ ./node_modules/@aws-amplify/geo/lib-esm/Providers/AmazonLocationServiceProvider.js 49:0-43 @ ./node_modules/@aws-amplify/geo/lib-esm/Geo.js @ ./node_modules/@aws-amplify/geo/lib-esm/index.js @ ./node_modules/aws-amplify/lib-esm/index.js @ ./plugins/amplify.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js error in ./node_modules/idb/build/esm/index.js Module parse failed: Unexpected token (78:4) You may need an appropriate loader to handle this file type. | } | replaceTraps((oldTraps) => ({ | ...oldTraps, | get: (target, prop, receiver) => getMethod(target, prop) || oldTraps.get(target, prop, receiver), | has: (target, prop) => !!getMethod(target, prop) || oldTraps.has(target, prop), @ ./node_modules/@aws-amplify/datastore/lib-esm/storage/adapter/IndexedDBAdapter.js 76:0-27 @ ./node_modules/@aws-amplify/datastore/lib-esm/storage/adapter/getDefaultAdapter/index.js @ ./node_modules/@aws-amplify/datastore/lib-esm/storage/storage.js @ ./node_modules/@aws-amplify/datastore/lib-esm/datastore/datastore.js @ ./node_modules/@aws-amplify/datastore/lib-esm/index.js @ ./node_modules/aws-amplify/lib-esm/index.js @ ./plugins/amplify.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=30000&path=/__webpack_hmr ./.nuxt/client.js OPEN http://localhost:3000
あなたの回答
tips
プレビュー