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

yarn build error! #27

Open
pmc1388 opened this issue Aug 16, 2020 · 2 comments
Open

yarn build error! #27

pmc1388 opened this issue Aug 16, 2020 · 2 comments

Comments

@pmc1388
Copy link

pmc1388 commented Aug 16, 2020

Hi again.
This errors show in the build action:

Starting type checking service...

✖ Wp-reactjs-starter
Compiled with some errors in 10.23s

[WEBPACK] Build failed after 17.819 seconds
[WEBPACK] Errors building [name].js
ERROR in ../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/plugins/wp-reactjs-starter/src/public/ts/store/stores.tsx(29,16):
TS2742: The inferred type of 'context' cannot be named without a reference to '@wp-reactjs-multi-starter/utils/node_modules/@types/react'. This is likely not portable. A type annotation is necessary.
ERROR in ../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/plugins/wp-reactjs-starter/src/public/ts/store/stores.tsx(40,23):
TS2742: The inferred type of 'StoreProvider' cannot be named without a reference to '@wp-reactjs-multi-starter/utils/node_modules/@types/react'. This is likely not portable. A type annotation is necessary.
ERROR in ..wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/plugins/wp-reactjs-starter/src/public/ts/utils/index.tsx(21,16):
TS2742: The inferred type of 'localization' cannot be named without a reference to '@wp-reactjs-multi-starter/utils/node_modules/@types/react'. This is likely n
✔ Utils
Compiled successfully in 11.18s

[WEBPACK] Finished building index.js within 11.18 seconds
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at process.target.send (internal/child_process.js:679:16)
at callback (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/worker-farm/lib/child/index.js:32:17)
at finishedCallback (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/parallel-webpack/src/webpackWorker.js:141:21)
at finalCallback (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/webpack/lib/Compiler.js:257:39)
at ../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/webpack/lib/Compiler.js:306:14
at AsyncSeriesHook.eval [as callAsync] (eval at create (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/tapable/lib/HookCodeFactory.js:33:10), :40:1)
at AsyncSeriesHook.lazyCompileHook (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/tapable/lib/Hook.js:154:20)
at ../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/webpack/lib/Compiler.js:304:22
at Compiler.emitRecords (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/webpack/lib/Compiler.js:499:39)
at ../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/webpack/lib/Compiler.js:298:10
at ../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/webpack/lib/Compiler.js:485:14
at AsyncSeriesHook.eval [as callAsync] (eval at create (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/tapable/lib/HookCodeFactory.js:33:10), :18:1)
at AsyncSeriesHook.lazyCompileHook (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/tapable/lib/Hook.js:154:20)
at ../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/webpack/lib/Compiler.js:482:27
at ../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/neo-async/async.js:2818:7
at done (../wp-react-starter--wp-reactjs-multi-starter-wp-reactjs-starter-1.2.0/node_modules/neo-async/async.js:3522:9)

@honzavaclavik
Copy link

I Have same problem

@honzavaclavik
Copy link

honzavaclavik commented Aug 28, 2020

This worked for me...

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants