You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So after all these steps, I tried removing the node_modules directory and then installing the dependencies again. The installation succeeded and I tried to run the npm run build again. Now, I'm getting another error:
> default@0.0.0 build C:\my-project
> preact build
× ERROR Error: TypeError: Cannot read property 'filter' of undefined
at preactCliFlow (C:\my-project\node_modules\preact-cli-plugin-flow\src\index.js:8:33)
at default (C:\my-project\preact.config.js:4:2)
at module.exports (C:\my-project\node_modules\preact-cli\lib\lib\webpack\transform-config.js:117:10)
at async prodBuild (C:\my-project\node_modules\preact-cli\lib\lib\webpack\run-webpack.js:83:2)
at async module.exports (C:\my-project\node_modules\preact-cli\lib\commands\build.js:37:14)
at module.exports (C:\my-project\node_modules\preact-cli\lib\lib\webpack\transform-config.js:128:10)
at async prodBuild (C:\my-project\node_modules\preact-cli\lib\lib\webpack\run-webpack.js:83:2)
at async module.exports (C:\my-project\node_modules\preact-cli\lib\commands\build.js:37:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! default@0.0.0 build: `preact build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the default@0.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Hi folks,
I have a problem installing this plugin.
Environment:
So, here is what I did (STR):
npm install -g preact-cli
preact create default my-project
cd my-project
npm run build
npm install preact-cli-plugin-flow --save-dev
Then I tried to execute
npm run build
and it failed. The console output:So after all these steps, I tried removing the
node_modules
directory and then installing the dependencies again. The installation succeeded and I tried to run thenpm run build
again. Now, I'm getting another error:Looks like the versions incompatibility issue.
Here is the repo to reproduce it:
https://github.com/eugenesimakin/preact-cli-plugin-flow-issue-reproduce
The text was updated successfully, but these errors were encountered: