Skip to content
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

Missing /dist directory when installing with npm from github #11

Open
civts opened this issue Aug 29, 2021 · 0 comments
Open

Missing /dist directory when installing with npm from github #11

civts opened this issue Aug 29, 2021 · 0 comments

Comments

@civts
Copy link

civts commented Aug 29, 2021

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, 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.

tennox pushed a commit to tennox/oidc-client-ts that referenced this issue Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant