Closed Grawl closed 4 years ago
Actually, I want to move server/
and plugins/
out of src/
and rename src/
to client/
to separate configurations, backend and frontend code.
Thanks for reporting this, indeed there is a little bug here, it will be fixed soon!
As a workarround, try to not provide the extension of your main file, (.js
or .ts
), so you can setup your uvue.config.js
like this:
export default {
paths: {
main: 'index', // Without file extension
}
};
Thank you! It's working for me now.
Also, I have to add chain.resolve.alias.set('@', path.resolve(__dirname, 'client'))
to chainWebpack()
in vue.config.js
to rename all src/
folder to client/
Fixed in 0.1.6
Piggy backing off of google's top result to hopefully save someone else an hour. I've also ran into this error if I switch module
to commonjs
in tsconfig.json.
Describe the bug
I want to rename
src/main.js
toindex.js
. But if I changepaths.main
inuvue.config.js
to'./src/index.js'
I got this error:To Reproduce
src/main.js
toindex.js
or anythingmain: './src/index.js'
topaths: {}
inuvue.config.js
vue-cli-service ssr:serve
Additional context