You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我在跟着教程尝试服务器部署方案时遇到两个问题:
(1)代码里没有使用 *.prod.js 对应 production environment
(2)出现错误 __VUE_PROD_DEVTOOLS__ is not defined, 应该是内置插件没有配置好导致的
以下是我在浏览器 console 看见的错误:
You are running a development build of Vue.
Make sure to use the production build (*.prod.js) when deploying for production.
runtime-core.esm-bundler.js:8070 Uncaught ReferenceError: __VUE_PROD_DEVTOOLS__ is not defined
at runtime-core.esm-bundler.js:8070:63
完成后运行 pnpm run dev, 然后访问 http://localhost:7011/entry?id=918&type=app, 出现上述错误
What is expected
预期浏览器 console 没有出现以下信息和错误:
You are running a development build of Vue.
Make sure to use the production build (*.prod.js) when deploying for production.
runtime-core.esm-bundler.js:8070 Uncaught ReferenceError: __VUE_PROD_DEVTOOLS__ is not defined
at runtime-core.esm-bundler.js:8070:63
What is actually happening
No response
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered:
Environment
win11, Command Prompt
Version
v20.10.0
Version
`-- (empty)
Link to minimal reproduction
Step to reproduce
我在跟着教程尝试服务器部署方案时遇到两个问题:
(1)代码里没有使用 *.prod.js 对应 production environment
(2)出现错误
__VUE_PROD_DEVTOOLS__ is not defined
, 应该是内置插件没有配置好导致的以下是我在浏览器 console 看见的错误:
复现步骤 (~15min):
我看的是官网的教程:
https://opentiny.design/tiny-engine#/help-center/course/backend/51
(root)/tiny-engine
(root)/tiny-engine-data-center
(root)/tiny-engine-webservice
pnpm serve:frontend
运行 tiny-engine 的前端,可以正常启动及显示,没有错误(root)/tiny-engine
里,我使用了pnpm run build:plugin && pnpm run build:prod
来完成 (官网教程漏了pnpm run build:plugin
)(root)/tiny-engine-webservice
里,我使用了del /q app\public\* app\view\* && xcopy ..\tiny-engine\packages\design-core\dist\ app\public\ /s /e /Y && move app\public\*.html app\view\
来完成第一步pnpm run dev
, 然后访问http://localhost:7011/entry?id=918&type=app
, 出现上述错误What is expected
预期浏览器 console 没有出现以下信息和错误:
What is actually happening
No response
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: