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

Module is not compiled with npm install #2

Closed
bamthomas opened this issue Aug 5, 2021 · 2 comments
Closed

Module is not compiled with npm install #2

bamthomas opened this issue Aug 5, 2021 · 2 comments

Comments

@bamthomas
Copy link

bamthomas commented Aug 5, 2021

when installing the module (with npm install) the module is not compiled, there is no lib directory :

Error: Cannot find module '/home/dev/src/sveltekit-jest-example/node_modules/jest-chain-transform/lib/index.js'. Please verify that the package.json has a valid "main" entry

we're using it here : https://github.com/iroco-co/sveltekit-jest-example
npm version : 6.14.11 on ubuntu 20.04

Not sure what is causing this behavior but if I find I will make a PR

bamthomas added a commit to iroco-co/jest-chain-transform that referenced this issue Aug 5, 2021
bamthomas added a commit to iroco-co/jest-chain-transform that referenced this issue Aug 5, 2021
@sebinsua
Copy link

sebinsua commented Sep 3, 2021

In the absence of .npmignore or package.json#files, npm publish uses the .gitignore to decide what to include in the package.

In this case, it's broken because lib is configured within .gitignore.

anc95 added a commit that referenced this issue Sep 7, 2021
@anc95
Copy link
Owner

anc95 commented Sep 8, 2021

I just publish version 0.0.4, and this issue should be fixed, Thanks for your issue.

@anc95 anc95 closed this as completed Sep 8, 2021
@anc95 anc95 mentioned this issue Sep 8, 2021
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

3 participants