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

Error: ENOENT: no such file or directory, schema/loader.json' #105

Closed
AvraamMavridis opened this issue Jun 9, 2017 · 5 comments · May be fixed by chagretes/preact-cli#29
Closed

Error: ENOENT: no such file or directory, schema/loader.json' #105

AvraamMavridis opened this issue Jun 9, 2017 · 5 comments · May be fixed by chagretes/preact-cli#29

Comments

@AvraamMavridis
Copy link

When I run npm run build I am getting Error: ENOENT for a loader file.

Error: ENOENT: no such file or directory, open '/Users/avraammavridis/Documents/newsaggregator/frontend/schema/loader.json'

This started happening suddenly. Even installing again preact-cli didnt help. Any idea?

@lukeed
Copy link
Member

lukeed commented Jun 9, 2017

Duplicate of #100 it seems. Don't think anyone has had a chance to dive into this yet.

@AvraamMavridis
Copy link
Author

Cleaning the npm cache and re-installing node modules solves the issue.

npm cache clean
npm i

@developit
Copy link
Member

Ah - had you just updated node or npm, by chance?

@AvraamMavridis
Copy link
Author

I updated npm to 5, and then back to 4.6 but I cant remember with which I made then npm i

@developit
Copy link
Member

Ah yeah - if you ran the install under npm 5 and then downgraded that would produce a botched node_modules. Cheers!

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

Successfully merging a pull request may close this issue.

3 participants