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

Cannot find module './package.json' #329

Open
Jozi-Mwangi opened this issue Mar 6, 2023 · 0 comments
Open

Cannot find module './package.json' #329

Jozi-Mwangi opened this issue Mar 6, 2023 · 0 comments

Comments

@Jozi-Mwangi
Copy link

I am setting up a refine project, having used the command npm create refine-app@latest client. After choosing the CRA option, i run into this error :

superplate-cli has encountered an error.

If you think this is caused by a bug. Please check out:
https://github.com/pankod/superplate/issues

ERROR Error: Cannot find module './package.json'
Require stack:

  • C:\Users\user\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\prettier\index.js
  • C:\Users\user\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\superplate-cli\lib\Helper\prettier\index.js
  • C:\Users\user\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\superplate-cli\lib\saofile.js
  • C:\Users\user\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\sao\dist\chunk.T-GsVNZ1.js
  • C:\Users\user\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\sao\dist\index.js
  • C:\Users\user\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\superplate-cli\lib\cli.js
  • C:\Users\user\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\superplate-cli\lib\index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object. (C:\Users\user\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\prettier\index.js:38160:5)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\user\AppData\Local\npm-cache\_npx\98c66fac912b1cba\node_modules\prettier\index.js',
    'C:\Users\user\AppData\Local\npm-cache\_npx\98c66fac912b1cba\node_modules\superplate-cli\lib\Helper\prettier\index.js',
    'C:\Users\user\AppData\Local\npm-cache\_npx\98c66fac912b1cba\node_modules\superplate-cli\lib\saofile.js',
    'C:\Users\user\AppData\Local\npm-cache\_npx\98c66fac912b1cba\node_modules\sao\dist\chunk.T-GsVNZ1.js',
    'C:\Users\user\AppData\Local\npm-cache\_npx\98c66fac912b1cba\node_modules\sao\dist\index.js',
    'C:\Users\user\AppData\Local\npm-cache\_npx\98c66fac912b1cba\node_modules\superplate-cli\lib\cli.js',
    'C:\Users\user\AppData\Local\npm-cache\_npx\98c66fac912b1cba\node_modules\superplate-cli\lib\index.js'
    ]
    }

What is the issue?

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