【问题标题】:× Trying to run parcel index.html No entries found at Bundler.bundle× 尝试运行 parcel index.html 在 Bundler.bundle 中找不到条目
【发布时间】: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)

【问题讨论】:

    标签: bundle parceljs


    【解决方案1】:

    这个问题已经有一年多了,但是如果有人在谷歌上搜索这个问题并且和我一样遇到同样的问题。

    尝试在你的 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

    【讨论】:

      猜你喜欢
      • 2023-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-26
      • 1970-01-01
      • 2018-11-19
      • 2018-09-14
      相关资源
      最近更新 更多