-
Notifications
You must be signed in to change notification settings - Fork 327
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
iOS TurboModules迁移 codegen报错 #922
Comments
package.json |
参照文档:https://reactnative.cn/docs/0.73/the-new-architecture/pillars-turbomodules
node ./node_modules/react-native/scripts/generate-codegen-artifacts.js \ --path ./ \ --outputPath RTNCalculator/generated/
新 rn 项目已经跑通;
在业务项目中,`
[Codegen] Processing react-native core libraries
[Codegen] Found react-native
[Codegen] >>>>> Searching for codegen-enabled libraries in /Users/username/companyRN/node_modules
[Codegen] Found @react-native-community/slider
[Codegen] Found react-native-gesture-handler
[Codegen] Found react-native-pager-view
[Codegen] Found react-native-safe-area-context
[Codegen] Found react-native-screens
[Codegen] Found rtn-calculator
[Codegen] >>>>> Searching for codegen-enabled libraries in react-native.config.js
[Codegen] >>>>> Searching for codegen-enabled libraries in the app
[Codegen] >>>>> Processing FBReactNativeSpec
node:internal/fs/utils:348
throw err;
^
Error: ENOENT: no such file or directory, lstat '/var/folders/ck/39b1k5cx4j9_rn9r7vx1kvqm0000gn/T/FBReactNativeSpeccuYgxg/schema.json'
at Object.lstatSync (node:fs:1574:3)
at /Users/username/companyRN/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js:79:10
at Array.forEach ()
at Object. (/Users/username/companyRN/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js:78:10)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
errno: -2,
syscall: 'lstat',
code: 'ENOENT',
path: '/var/folders/ck/39b1k5cx4j9_rn9r7vx1kvqm0000gn/T/FBReactNativeSpeccuYgxg/schema.json'
}
Node.js v18.7.0
Error: Command failed: node /Users/username/companyRN/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js --platform ios /var/folders/ck/39b1k5cx4j9_rn9r7vx1kvqm0000gn/T/FBReactNativeSpeccuYgxg/schema.json /Users/username/companyRN/node_modules/react-native/Libraries
node:internal/fs/utils:348
throw err;
^
Error: ENOENT: no such file or directory, lstat '/var/folders/ck/39b1k5cx4j9_rn9r7vx1kvqm0000gn/T/FBReactNativeSpeccuYgxg/schema.json'
at Object.lstatSync (node:fs:1574:3)
at /Users/username/companyRN/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js:79:10
at Array.forEach ()
at Object. (/Users/username/companyRN/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js:78:10)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
errno: -2,
syscall: 'lstat',
code: 'ENOENT',
path: '/var/folders/ck/39b1k5cx4j9_rn9r7vx1kvqm0000gn/T/FBReactNativeSpeccuYgxg/schema.json'
}
Node.js v18.7.0
status: 1,
signal: null,
output: [
null,
,
<Buffer 6e 6f 64 65 3a 69 6e 74 65 72 6e 61 6c 2f 66 73 2f 75 74 69 6c 73 3a 33 34 38 0a 20 20 20 20 74 68 72 6f 77 20 65 72 72 3b 0a 20 20 20 20 5e 0a 0a 45 ... 1024 more bytes>
],
pid: 71901,
stdout: ,
stderr: <Buffer 6e 6f 64 65 3a 69 6e 74 65 72 6e 61 6c 2f 66 73 2f 75 74 69 6c 73 3a 33 34 38 0a 20 20 20 20 74 68 72 6f 77 20 65 72 72 3b 0a 20 20 20 20 5e 0a 0a 45 ... 1024 more bytes>
}
[Codegen] Done.
`
The text was updated successfully, but these errors were encountered: