FernandoVazZ / reactblockly-customblocks

Example to use react-blockly using custom blocks
27 stars 25 forks source link

Unable to launch the app after cloning, `npm install` and `npm start` due to error #4

Open sabrams61 opened 2 years ago

sabrams61 commented 2 years ago

This is the error I get:

reactblockly-customblocks % npm start

> reactblockly-customblocks@0.1.0 start
> react-scripts start

node:internal/modules/cjs/loader:488
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/MM14962/FrontEndProjects/reactblockly-customblocks/node_modules/postcss-safe-parser/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:372:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:433:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:712:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/MM14962/FrontEndProjects/reactblockly-customblocks/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v17.6.0
sabrams61 commented 2 years ago

I started from scratch again and this time after running npm install I ran npm audit fix and then npm start and that seemed to do the trick.

runtimevic commented 11 months ago

I started from scratch again and this time after running npm install I ran npm audit fix and then npm start and that seemed to do the trick.

Blockly_FernandoVazz_yarn_start_error1