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
I got this error when installing Blockbook for the first time and running the start script:
ERROR in ./node_modules/array.prototype.flat/implementation.js
Module not found: Error: Can't resolve 'es-abstract/2020/ArraySpeciesCreate'
> blockbook start
Live Reload listening on port 35729
ℹ 「wds」: Project is running at http://localhost:8081/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Users/iandunn/vhosts/localhost/wp.test/public_html/content/plugins/inline-time-block/dist
ℹ 「wds」: 404s will fallback to /index.html
ℹ 「wdm」: wait until bundle finished: /
✖ 「wdm」:
ERROR in ./node_modules/array.prototype.flat/implementation.js
Module not found: Error: Can't resolve 'es-abstract/2020/ArraySpeciesCreate' in '/Users/iandunn/vhosts/localhost/wp.test/public_html/content/plugins/inline-time-block/node_modules/array.prototype.flat'
@ ./node_modules/array.prototype.flat/implementation.js 3:25-71
@ ./node_modules/array.prototype.flat/index.js
@ ./node_modules/react-with-styles-interface-css/dist/index.js
@ ./node_modules/react-with-styles-interface-css/index.js
@ ./node_modules/react-dates/lib/utils/registerCSSInterfaceWithDefaultTheme.js
@ ./node_modules/react-dates/lib/initialize.js
@ ./node_modules/react-dates/initialize.js
@ ./node_modules/@wordpress/components/build-module/date-time/index.js
@ ./node_modules/@wordpress/components/build-module/index.js
@ ./node_modules/@wordpress/block-library/build-module/post-hierarchical-terms/edit.js
@ ./node_modules/@wordpress/block-library/build-module/post-hierarchical-terms/index.js
@ ./node_modules/@wordpress/block-library/build-module/index.js
@ ./node_modules/blockbook-cli/src/app/index.js
I got this error when installing Blockbook for the first time and running the
start
script:ERROR in ./node_modules/array.prototype.flat/implementation.js Module not found: Error: Can't resolve 'es-abstract/2020/ArraySpeciesCreate'
Looks like the
2020
folder is missing:> npm ls array.prototype.flat /Users/iandunn/vhosts/localhost/wp.test/public_html/content/plugins/inline-time-block └─┬ blockbook-cli@0.7.0 └─┬ @wordpress/components@10.2.0 └─┬ react-dates@17.2.0 └─┬ react-with-styles-interface-css@4.0.3 └── array.prototype.flat@1.2.4
Re-running
npm install
doesn't help.It seems like it might be an issue with webpack
resolve
paths:As a workaround, I cloned the main branch of
es-abstract
intonode_modules/es-abstract
.The text was updated successfully, but these errors were encountered: