我最近努力寻找以下错误的解决方案,该错误关于在一些开发依赖环境中将C++ Emscripten生成的javascript模块包含到Gatsby React应用程序中时,在core-js/modules/es6.typed.uint32-array阶段找不到javascript。
以下是示例错误,以便于Google搜索:
ERROR #98124 WEBPACK
Generating development JavaScript bundle failed
Can't resolve 'core-js/modules/es6.typed.uint32-array' in
ERROR #98124 WEBPACK
Can't resolve 'core-js/modules/es6.typed.float32-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.float32-array' is installed. If you're trying to use a local file make sure that the path is correct.
ERROR #98124 WEBPACK
Can't resolve 'core-js/modules/es6.typed.float64-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.float64-array' is installed. If you're trying to use a local file make sure that the path is correct.
ERROR #98124 WEBPACK
Can't resolve 'core-js/modules/es6.typed.int16-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.int16-array' is installed. If you're trying to use a local file make sure that the path is correct.
ERROR #98124 WEBPACK
Can't resolve 'core-js/modules/es6.typed.int32-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.int32-array' is installed. If you're trying to use a local file make sure that the path is correct.
ERROR #98124 WEBPACK
Can't resolve 'core-js/modules/es6.typed.int8-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.int8-array' is installed. If you're trying to use a local file make sure that the path is correct.
File: src/library/anypiajs.mjs
ERROR #98124 WEBPACK
Can't resolve 'core-js/modules/es6.typed.uint16-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.uint16-array' is installed. If you're trying to use a local file make sure that the path is correct.
ERROR #98124 WEBPACK
Generating development JavaScript bundle failed
Can't resolve 'core-js/modules/es6.typed.uint32-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.uint32-array' is installed. If you're trying to use a local file make sure that the path is correct.
ERROR #98124 WEBPACK
Can't resolve 'core-js/modules/es6.typed.uint8-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.uint8-array' is installed. If you're trying to use a local file make sure that the path is correct.
ERROR #98124 WEBPACK
Can't resolve 'core-js/modules/es6.typed.uint8-clamped-array' in '/Users/tk/gitrepos/windfall8/src/library'
If you're trying to use a package make sure that 'core-js/modules/es6.typed.uint8-clamped-array' is installed. If you're trying to use a local file make sure that the path is correct.发布于 2020-08-26 15:34:54
事实证明,core-js最近将.typed.部分从最初的core-js/modules/es6.typed.int8-array更改为.typed-array.。我只需要在生成的emscripten模块中显式地包含这些调整后的路径。
我也使用npm i core-js@3,但我没有测试是否需要它。不需要特殊的babelrc配置:
import 'core-js/modules/es6.typed-array.float32-array';
import 'core-js/modules/es6.typed-array.float64-array';
import 'core-js/modules/es6.typed-array.int16-array';
import 'core-js/modules/es6.typed-array.int32-array';
import 'core-js/modules/es6.typed-array.int8-array';
import 'core-js/modules/es6.typed-array.uint16-array';
import 'core-js/modules/es6.typed-array.uint32-array';
import 'core-js/modules/es6.typed-array.uint8-array';
import 'core-js/modules/es6.typed-array.uint8-clamped-array';https://stackoverflow.com/questions/63592691
复制相似问题