Closed jackmuskopf closed 3 years ago
In quasar.conf.js, try to add to following code in the block 'build'
chain.module.rule('esm').test(/\.m?jsx?$/).resolve.set('fullySpecified', false)
Yes! That seems to work, specifically under 'build'
in the chainWebpack
function. Thank you!
Would you expect that code should be removed after improvements to amplify-js or quasar? Or should it be necessary when mixing the two?
Vue CLI is working on it https://github.com/vuejs/vue-cli/blob/next/packages/%40vue/cli-service/lib/config/base.js#L16-L21, I think quasar will improve it later on.
Awesome - thanks again!
In quasar.conf.js, try to add to following code in the block 'build'
chain.module.rule('esm').test(/\.m?jsx?$/).resolve.set('fullySpecified', false)
This does not seem to work for me unfortunately. Any updates on when Quasar is addressing this?
In quasar.conf.js, try to add to following code in the block 'build'
chain.module.rule('esm').test(/\.m?jsx?$/).resolve.set('fullySpecified', false)
This does not seem to work for me unfortunately. Any updates on when Quasar is addressing this?
The full line, combining what Herman and Jack said is: build: { ... lots of stuff ..., chainWebpack: chain => chain.module.rule('esm').test(/.m?jsx?$/).resolve.set('fullySpecified', false), ... potentially more stuff ... }
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When running
quasar dev
to serve the app, I getThis is caused by the line
import Amplify from 'aws-amplify';
that I use in the Quasar boot configsrc/boot/amplify.js
. The boot config takes the place of what is placed inmain.js
per https://docs.amplify.aws/ui/auth/authenticator/q/framework/vue#installationExpected behavior
The imports should resolve.
Reproduction steps
src/boot/amplify.js
Add
'amplify'
toquasar.conf.js
in theboot
array:Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response