首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >core-js无法解析core-js/modules/es6.typed.uint32-array

core-js无法解析core-js/modules/es6.typed.uint32-array
EN

Stack Overflow用户
提问于 2020-08-26 15:34:54
回答 1查看 796关注 0票数 0

我最近努力寻找以下错误的解决方案,该错误关于在一些开发依赖环境中将C++ Emscripten生成的javascript模块包含到Gatsby React应用程序中时,在core-js/modules/es6.typed.uint32-array阶段找不到javascript。

以下是示例错误,以便于Google搜索:

代码语言:javascript
复制
 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.
EN

回答 1

Stack Overflow用户

发布于 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配置:

代码语言:javascript
复制
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';
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63592691

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档