【发布时间】:2021-12-18 16:48:07
【问题描述】:
这是一个在 create-react-app and Next JS 上运行的应用程序 。它们之间的区别在于 CRA 似乎已经加载了 bootstrap.mon.js 和 jquery.min.js 而 NextJS 没有。我通过 next/head 在 NextJS 代码中添加了 HEAD 部分,并尝试加载两个 JS 文件。虽然没有错误,但我也没有看到正确的结果。 有人可以帮我理解为什么 NextJS 会发生这种情况,我应该怎么做才能让 NextJS 使用 bootstrap 和 jquery 正确加载我的应用程序
【问题讨论】:
-
CRA 代码 - github.com/KrishnanSriram/cra NextJS 代码 - github.com/KrishnanSriram/nextjs
-
如果您找到解决方案,请告诉我