Project Building Issue #3508
Unanswered
Chamiishan
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to collaborate in this project, but while building this project I am facing the following issue:
First I have installed all the react related dependencies and when I ran "npm install" command I got the following error:
lerna notice cli v3.22.1
lerna info Executing command in 2 packages: "yarn run prepublish"
lerna ERR! yarn run prepublish exited 1 in 'formik'
lerna ERR! yarn run prepublish stdout:
yarn run v1.22.17
$ npm run build
✓ Creating entry file 3.5 secs
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run prepublish stderr:
@rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to
true
, as the next major version will default this option totrue
.@rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to
true
, as the next major version will default this option totrue
.(typescript) Error: D:/source/formik/packages/formik/src/Field.tsx(1,24): semantic error TS2307: Cannot find module 'react' or its corresponding type declarations.
Error: D:/source/formik/packages/formik/src/Field.tsx(1,24): semantic error TS2307: Cannot find module 'react' or its corresponding type declarations.
at error (D:\source\formik\node_modules\rollup\dist\shared\node-entry.js:5400:30)
at throwPluginError (D:\source\formik\node_modules\rollup\dist\shared\node-entry.js:11878:12)
at Object.error (D:\source\formik\node_modules\rollup\dist\shared\node-entry.js:12912:24)
at Object.error (D:\source\formik\node_modules\rollup\dist\shared\node-entry.js:12081:38)
at RollupContext.error (D:\source\formik\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:17237:30)
at D:\source\formik\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:25033:23
at arrayEach (D:\source\formik\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:545:11)
at Function.forEach (D:\source\formik\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:9397:14)
at printDiagnostics (D:\source\formik\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:25006:12)
at Object.transform (D:\source\formik\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:29277:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:
tsdx build --tsconfig tsconfig.build.json
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\jaini\AppData\Roaming\npm-cache_logs\2022-03-06T11_50_08_985Z-debug.log
error Command failed with exit code 1.
lerna ERR! yarn run prepublish exited 1 in 'formik'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! formik-project@ prepublish:
lerna run prepublish
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the formik-project@ prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\jaini\AppData\Roaming\npm-cache_logs\2022-03-06T11_50_09_184Z-debug.log
Can someone help me to solve this issue?
Thanks
Ishan Jain
Email Id: [email protected]
Beta Was this translation helpful? Give feedback.
All reactions