-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Vue SFC imports not working #3410
Comments
@Elliot128 why close? Is this no longer happening? |
@Elliot128 Why was this closed? @kwelch did you end up figuring this out? I just tried an import in a SFC using the package root `import Foo from '~/src/foo.js' and there's an error with the resolver.
But it works with relative importing. |
It was a typo in my import of vuex. I was importing "Vuex" instead of "vuex". @mekhami, not sure what your project structure is like. Can you give a link reproducing this issue? |
|
Hm, seems like a bug. Per the documentation I think this should work properly. I found this issue which may be of interest: #1236 |
🐛 bug report
I have a Vue SFC. In the script section, I am trying to import a module. Parcel is not importing this module. Parcel built the SFC correctly before, but when I added the
import
it doesn't handle that correctly.🎛 Configuration (.babelrc, package.json, cli command)
I am not using a babelrc file currently. Just the default parcel configuration.
🤔 Expected Behavior
Parcel should bundle the imports in the sfc.
😯 Current Behavior
Parcel doesn't bundle the imports in the sfc.
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: