parcel出现问题

来源:3-2 安装 Tensoflow.js

鹤12

2021-03-05

错误提示:Invalid Version: undefined
搜了git上的讨论,是最新的版本的问题,有个人说“
You can workaround this by adding

“resolutions”: {
"@babel/preset-env": “7.13.8”
}
to your package.json file. With Yarn it will automatically download the previous @babel/preset-env version (which doesn’t rely on the Babel API Parcel isn’t providing); with npm you’ll need https://www.npmjs.com/package/npm-force-resolutions to make it work.”
我不是很懂parcel的用法,能请老师给解释一下如何用这种方法恢复parcel吗?
附上讨论链接:https://github.com/parcel-bundler/parcel/issues/5943

写回答

1回答

lewis

2021-03-05

把parcel版本降一下,你再搜另一个issue,里面有。我前几天也遇到这个问题了哈哈

1
2
鹤12
非常感谢!
2021-03-11
共2条回复

JavaScript玩转机器学习-Tensorflow.js项目实战

机器学习理论知识+Tensorflow.js实战开发

644 学习 · 189 问题

查看课程