debian - 在 Debian 的虚拟机服务器上运行已部署的 vue 3 项目 - 出现错误
问题描述
您好,这是我第一次尝试在 linux 上运行 vue。在普通主机中,我只需要复制并粘贴 dist 文件夹即可。我正在阅读教程说我需要安装 nginx 和节点,我这样做了,当尝试访问分配的链接时,我可以看到应用程序的前面部分,但只是部分,根本不起作用,在浏览器中控制台我收到此错误:
SyntaxError: 9
at S (message-compiler.esm-bundler.js:32)
at f (message-compiler.esm-bundler.js:167)
at Z (message-compiler.esm-bundler.js:725)
at ee (message-compiler.esm-bundler.js:739)
at Object.te [as nextToken] (message-compiler.esm-bundler.js:781)
at h (message-compiler.esm-bundler.js:916)
at d (message-compiler.esm-bundler.js:1015)
at v (message-compiler.esm-bundler.js:1054)
at Object.g [as parse] (message-compiler.esm-bundler.js:1069)
at ne (message-compiler.esm-bundler.js:1322)
Ze @ runtime-core.esm-bundler.js:225
我只有 dist 文件夹,我想知道我是否也需要整个项目。提前感谢您的任何建议
解决方案
推荐阅读
- javascript - 将 JS 函数附加到 pug 以创建动态 url
- prediction - 无人驾驶 AI H2O 中的时间序列
- html - 浮动元素对齐不一致
- javascript - 如何将ngrx效果调用组合到单个流中?
- sql - 为什么我的 Access Max() 子查询不起作用?
- rabbitmq - 如何在 python 中使用 RabbitMQ 进行简单的单元测试?
- mongodb - 如果一个结果匹配,$limit 会停止获取吗?
- javascript - 如何在执行其他代码之前等待循环?
- multithreading - Golang 中的 channel 和 mutex 有什么区别?
- javascript - 带有预设环境(无选项)和预设打字稿的 Babel 说“缺少类属性转换”。为什么?