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
bug: Cannot find module dist/vue-component-lib/utils in Nuxt 3 #319
Comments
Looks like this is not only related to the Vue output target. A consumer of our React library is also affected (see related issue above ☝️). I have asked for more information on their setup. The error message however is a little more informative:
Looks like the error message is generated by Webpack. I have created a pull request to address this issue. 🚀 |
Is there any progress on this? My team was working hard to get our design system ready and now that we are trying to run on an actual react project, I'm getting this exact same problem.
I would really appreciate any updates on this. |
Prerequisites
Stencil Version
2.19.3
Stencil Framework Output Target
Vue
Stencil Framework Output Target Version
0.6.2
Current Behavior
In Nuxt 3 I get the following error when using the vue output target:
The issue can be fixed by adding the
.js
file extension to the utils import statement within thevue.js
file:Expected Behavior
I don't get a 500 from Nuxt.
Steps to Reproduce
You can reproduce the issue by doing the following:
git clone -b issue/esm_path https://github.com/emdgroup-liquid/liquid-sandbox-nuxt-tailwind.git
npm install && npm run build && npm run preview
Code Reproduction URL
https://github.com/emdgroup-liquid/liquid-sandbox-nuxt-tailwind
Additional Information
This may be related to nuxt/nuxt#14597
Also, please note that the code reproduction URL already includes a patch (using patch-package) that is applied automatically in the postinstall script, so please follow the steps listed above to make sure you disable the patch in order to reproduce the error.
Thanks a lot! 🤓
The text was updated successfully, but these errors were encountered: