常数“无法加载资源:服务器的状态为404();在GitHub页面上导入JavaScript时
相当知道要使用包裹,但是我正在导入一系列的JavaScript模块:
import animate from "./animate";
这些JS文件位于我网站的根部“ JS”中。
在本地再次运行时,一切似乎都正确地导入
npm run dev
,一切都可以在本地运行良好。仅当推到github页面时就会发生错误。感谢您在这个问题上的任何帮助。
Fairly knew to utilizing parcel, but I am importing a series of javascript modules with:
import animate from "./animate";
these js files are inside a folder "js" at the root of my site.
Everything seems to import correctly when running it locally with
npm run dev
Again, everything works fine locally. Errors only occur when pushed to Github pages. Thanks for any help with the issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论