You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run into an issue where it appears that importing anything from an npm package in a client script breaks the client script (it doesn't run on the page) in production. It works fine in development.
@amannn Yes, I suppose it is similar to that example (an npm dependency). However using other npm dependencies doesn't seem to work. I wasn't able to fix this issue and decided to use a parallel rollup build instead, with the bundles written to /public.
Hmm, interesting. Thanks for the report though. I'm currently not affected by this issue, so I'll leave it open for now in case someone else wants to look into it.
Hi there,
I have run into an issue where it appears that importing anything from an npm package in a client script breaks the client script (it doesn't run on the page) in production. It works fine in development.
I have a repro case here: master...sohara:test-npm-dependencies
(console logging works if you comment out the import)
Any ideas on why this is not working?
The text was updated successfully, but these errors were encountered: