小编Sam*_*nia的帖子

使用 Parcel-Bundler 构建 Web 应用程序时遇到问题(编译后未加载 Java)

美好的一天,伙计们!\n我在网上寻找解决方案,但找不到,所以我向你寻求帮助。请耐心听我完整描述情况。

\n

我是一名初学者,在开发引导 Web 项目时遇到了 Parcel 问题。\nFirst, it throws an error for using index.js which doesn\'t make any sense. As per the bootstrap, doc. folder structure suppose to be

\n
project-name/\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 build/\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 node_modules/\n\xe2\x94\x82   \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 bootstrap/\n\xe2\x94\x82   \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 popper.js/\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 scss/\n\xe2\x94\x82   \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 custom.scss\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 src/\n\xe2\x94\x82   \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 index.html\n\xe2\x94\x82   \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 index.js\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 package.json\n
Run Code Online (Sandbox Code Playgroud)\n

我正在严格遵循引导文档。链接: https: //getbootstrap.com/docs/5.0/getting-started/parcel/

\n

项目使用的包

\n
    \n
  • 包裹捆绑器,

    \n
  • \n
  • 波普尔和

    \n
  • \n
  • 引导程序

    \n
  • \n
\n

使用简单的 HTML 重新创建问题

\n

索引.html

\n
<!DOCTYPE html>\n<html lang="en">\n<head>\n  <meta charset="UTF-8">\n  <meta http-equiv="X-UA-Compatible" content="IE=edge">\n …
Run Code Online (Sandbox Code Playgroud)

html javascript parceljs popperjs bootstrap-5

9
推荐指数
3
解决办法
6912
查看次数

标签 统计

bootstrap-5 ×1

html ×1

javascript ×1

parceljs ×1

popperjs ×1