Closed AliLozano closed 4 years ago
Hi,
Sorry for late response, but actually I cannot reproduce your issue. Can you provide a repository ?
Thanks !
Here is:
Create a project with this: vue-router, vuex, dart-sass, babel, typescript, pwa, eslint, unit-jest, e2e-cypress
vue create foobar
vue add @uvue/sur
When run
npm run serve
page is in blank. When runnpm run build
page is in blank. When runnpm run ssr:serve
it works. When runnpm run ssr:build
it works.
Change package.json order: (@uvue/vue-cli-plugin-ssr
after@vue/cli-plugin-typescript
) https://github.com/AliLozano/uvue-typescript-issue
When run
npm run serve
it works When runnpm run build
it works When runnpm run ssr:serve
it fails with circular reference When runnpm run ssr:build
it fails with circular reference
With my pull request
, both works.
Hi, I've tested your procedure and I am able to only reproduce the first issue (blank page) but cannot reproduce the circular to JSON issue.
Can you give me your NodeJS version ?
Did you download my repo?, in my repo I've changed the package order. https://github.com/AliLozano/uvue-typescript-issue
My node version is v10.16.0
Yep, I've take your repo and I'm on same node version.
OK I've reproduced the issue but only with ssr:build
command. Vue CLI enable thread-loader
in production builds, and this one call JSON.stringify
.
As a workaround, you can setup your vue.config.js
like this:
module.exports = {
parallel: false,
};
I'll close your PR and I'll try find a better way to solve this issue.
Thanks I'll be waiting :).
Can you see why In default package order, npm run serve
gives a blank page?
It will be fixed in next version.
As a workaround, you can put this in vue.config.js
:
module.exports = {
chainWebpack(config) {
config.entryPoints
.get('app')
.clear()
.add(require.resolve('@uvue/core/client'));
},
};
(On next update of this plugin, you need to remove this code)
Thanks :)
Fixed in v0.1.1
Describe the bug A clear and concise description of what the bug is.
To Reproduce Install
"@vue/cli-plugin-typescript": "^3.8.0"
and put uvue after it dependence in package.jsonExpected behavior Run
npm run ssr:build
ornpm run build
It throw error
I don't know if is a typescript loader, but moving dependence, it fails,
I've identified that problem is this: @uvue/vue-cli-plugin-ssr/uvue/index.js
and @uvue/vue-cli-plugin-ssr/index.js
After the
PoolWorker
wants to serialize it and it fails.I have a solution, but it need to you evaluate it, and add a test. I will pull request.