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

ERROR in ./node_modules/array.prototype.flat/implementation.js Module not found: Error: Can't resolve 'es-abstract/2020/ArraySpeciesCreate' #41

Open
iandunn opened this issue Feb 11, 2021 · 0 comments

Comments

@iandunn
Copy link
Contributor

iandunn commented Feb 11, 2021

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

Looks like the 2020 folder is missing:

> ll node_modules/es-abstract/20*
2015/ 2016/ 2017/ 2018/ 2019/
> npm ls array.prototype.flat
/Users/iandunn/vhosts/localhost/wp.test/public_html/content/plugins/inline-time-block
└─┬ [email protected]
  └─┬ @wordpress/[email protected]
    └─┬ [email protected]
      └─┬ [email protected]
        └── [email protected]

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 into node_modules/es-abstract.

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

No branches or pull requests

1 participant