我遇到以下问题:
./node_modules/@hapi/joi/lib/types/object/index.js
Module parse failed: Unexpected token (254:64)
You may need an appropriate loader to handle this file type.
| if (pattern.regex ?
| pattern.regex.test(key) :
| !pattern.schema._validate(key, state, { .
...options, abortEarly:true }).errors) {
|
| unprocessed.delete(key);
还有一条错误消息,指出以下内容:
Cannot find file 'Applications/IntelliJ/IDEA.app/contents/bin/././node_modules/@hapi/joi/lib/types/object/index.js'
依赖项即时通讯使用:
"dependencies": {
"@hapi/joi": "^15.0.3",
我也已经安装了模块,当我导航到该模块时,index.js文件就在其中。
有什么建议吗?