seek-oss / playroom

Design with JSX, powered by your own component library.
MIT License
4.45k stars 183 forks source link

Error: Cannot find module './playroom/snippets.js' #356

Open Manoharvuradi opened 1 month ago

Manoharvuradi commented 1 month ago

After setting up the project when i run the server i got the issue.

node:internal/modules/cjs/loader:1077 const err = new Error(message); ^

Error: Cannot find module './playroom/snippets.js' Require stack:

Node.js v18.17.1

askoufis commented 1 month ago

@Manoharvuradi

Have you created the file at ./playroom/snippets.js? If you don't plan to use snippets, or just haven't created that file yet, you can either create it and populate it with some snippets, or remove the snippets property from your playroom config. That should make the error go away.

Manoharvuradi commented 1 month ago

I have created ./playroom/snippets.js outside of src folder yet i'm getting the issue

node:internal/modules/cjs/loader:1077 const err = new Error(message); ^

Error: Cannot find module 'ajv/dist/compile/codegen' Require stack:

Node.js v18.17.1

askoufis commented 2 weeks ago

@Manoharvuradi

This error doesn't look to be directly related to playroom. It could be a symptom of something else in your setup. A minimal reproduction would be much appreciated, be it a github repo or a stackblitz/codesandbox link.