Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置outputDir报错 #20

Closed
yali213 opened this issue Jul 10, 2020 · 3 comments
Closed

设置outputDir报错 #20

yali213 opened this issue Jul 10, 2020 · 3 comments

Comments

@yali213
Copy link

yali213 commented Jul 10, 2020

设置了outputDir参数,但是启动报错了,打印看了下,应该是读取vue-ssr-client-manifest.json等文件的路径有问题;
再未设置outputDir参数时,打印出来的路径是:
image

2.设置了outputDir: path.resolve(__dirname, './ssr/mortise-land-page-ssr')后,打印出来的路径为:
image
并且启动后报错:
image

@lzxb
Copy link
Contributor

lzxb commented Jul 10, 2020

你要注意一下TS编译后的文件路径是不是变化了。

@lzxb
Copy link
Contributor

lzxb commented Jul 10, 2020

相对路径。

@yali213
Copy link
Author

yali213 commented Jul 10, 2020

get

@yali213 yali213 closed this as completed Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants