Vite gets stuck trying to resolve spdx-license-ids package during build #3892
praneetloke
started this conversation in
General
Replies: 3 comments 2 replies
-
Anyone? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@henriiik thank you for creating those PRs! Also Happy New Year to you! |
Beta Was this translation helpful? Give feedback.
1 reply
-
if anybody is getting this error in webpack, ensure there's 'json' in resolve.extensions in your webpack config
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am not sure if this is a bug with Vite or Rollup.
spdx-license-ids
andspdx-exceptions
packages only provide JSON files, Vite hangs indefinitely after having failed module resolution for those packages. For example, I installed a package (@pulumi/pulumi
) that installsspdx-license-ids
transitively. Vite fails with:The closest issue describing what I think is happening is #247. I added an
index.js
file that simply exports theindex.json
viamodule.exports
in each of the offending packages locally innode_modules
. Vite was then able to complete the build successfully. What is the right way to fix this? Should I open a bug report here?Here's my env info:
Beta Was this translation helpful? Give feedback.
All reactions