【发布时间】:2019-10-31 21:05:38
【问题描述】:
尝试运行 parcel index.html 未找到条目 在 Bundler.bundle()
parcel index.html
Server running at http://localhost:1234
× No entries found.
at Bundler.bundle (file_location of bundler)
【问题讨论】:
尝试运行 parcel index.html 未找到条目 在 Bundler.bundle()
parcel index.html
Server running at http://localhost:1234
× No entries found.
at Bundler.bundle (file_location of bundler)
【问题讨论】:
这个问题已经有一年多了,但是如果有人在谷歌上搜索这个问题并且和我一样遇到同样的问题。
尝试在你的 package.json 中包含 babel 并确保你的项目中有一个 .babelrc 文件。我的看起来像这样:
.babelrc
{"presets": ["@babel/preset-react", "@babel/preset-env"]}
package.json
“依赖”:{
"@babel/core": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"parcel": "^1.12.4",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
希望这行得通。
如果您需要更多信息,请点击此处:https://github.com/parcel-bundler/parcel/issues/2095
【讨论】: