首页 > 解决方案 > 在 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 文件夹,我想知道我是否也需要整个项目。提前感谢您的任何建议

标签: debianvirtual-machinevuejs3

解决方案


推荐阅读