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

跑不起来 #6

Open
yodoe opened this issue Jun 6, 2021 · 4 comments
Open

跑不起来 #6

yodoe opened this issue Jun 6, 2021 · 4 comments

Comments

@yodoe
Copy link

yodoe commented Jun 6, 2021

提示如下错误:

parcel 版本:1.12.5

var node2 = new Node();
for (var key in this) {
// Do not clone comments tha...... } could not be cloned.
var node2 = new Node();
for (var key in this) {
// Do not clone comments tha...... } could not be cloned.
at Object.serialize (v8.js:268:7)
at _default (/usr/local/lib/node_modules/parcel-bundler/node_modules/@babel/core/lib/transformation/util/clone-deep.js:22:34)

@shuihu001
Copy link

我也是,跑不起来

@LeehanLee
Copy link

我碰到过这个问题,原因是 devDependencies 里声明的依赖是 ^6.26.0 等带有 ^ 号的,但是直接运行npm i的话,现在(2021.08)安装的会是7.几的版本了,也不确定就一定是这个问题,但是,当我把 devDependencies 里的所有 ^ 去掉再 npm i ,就可以跑起来了。

@chisulily
Copy link

确实,去掉^ 号再npm i就跑起来了,感谢楼上

@giftedunicorn
Copy link

babel配置更新成这样试试

{
    "presets": [
    	"@babel/preset-env",
    	"@babel/preset-react"
	],
    "plugins": [
        ["transform-react-jsx", {
            "pragma": "React.createElement"
        }]
    ]
}

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

5 participants