Skip to content

Instantly share code, notes, and snippets.

@alloy
Created November 19, 2020 13:53
Show Gist options
  • Save alloy/2d3b3285b76666234be62086f9d4b8b6 to your computer and use it in GitHub Desktop.
Save alloy/2d3b3285b76666234be62086f9d4b8b6 to your computer and use it in GitHub Desktop.
internal/modules/cjs/loader.js:960
throw err;
^
Error: Cannot find module 'flow-parser'
Require stack:
- /private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/parsers/flow/index.js
- /private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/cli/combine/combine-js-to-schema.js
- /private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/parsers/flow/index.js:77:20)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/parsers/flow/index.js',
'/private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/cli/combine/combine-js-to-schema.js',
'/private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js'
]
}
internal/modules/cjs/loader.js:960
throw err;
^
Error: Cannot find module 'jscodeshift'
Require stack:
- /private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/generators/components/GenerateViewConfigJs.js
- /private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/generators/RNCodegen.js
- /private/tmp/RNTestProject/node_modules/react-native/scripts/generate-native-modules-specs-cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/generators/components/GenerateViewConfigJs.js:12:11)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/generators/components/GenerateViewConfigJs.js',
'/private/tmp/RNTestProject/node_modules/react-native/packages/react-native-codegen/lib/generators/RNCodegen.js',
'/private/tmp/RNTestProject/node_modules/react-native/scripts/generate-native-modules-specs-cli.js'
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment