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 tired to install this package from github with npm (npm i --save https://github.com/kaisermann/svelte-css-vars), but can't use it in my project. I get the following error:
'Failed to resolve entry for package "svelte-css-vars". The package may have incorrect main/module/exports specified in its package.json'
Looking at the folder inside node-modules, the dist folder is missing.
Proposed solution
After some research, I found that adding the following script in pacakge.json fixes the error.
"prepare": "npm run build"
When this script is added, npm automatically builds the package upon installation.
If you consider this a viable solution, I would gladly open a PR for it.
The text was updated successfully, but these errors were encountered:
tennox
added a commit
to tennox/oidc-client-ts
that referenced
this issue
Nov 26, 2023
The issue
Hi,
I tired to install this package from github with npm (
npm i --save https://github.com/kaisermann/svelte-css-vars
), but can't use it in my project. I get the following error:'Failed to resolve entry for package "svelte-css-vars". The package may have incorrect main/module/exports specified in its package.json'
Looking at the folder inside
node-modules
, thedist
folder is missing.Proposed solution
After some research, I found that adding the following script in
pacakge.json
fixes the error.When this script is added, npm automatically builds the package upon installation.
If you consider this a viable solution, I would gladly open a PR for it.
The text was updated successfully, but these errors were encountered: