We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In _scripts/webpack.renderer.config.js.
_scripts/webpack.renderer.config.js
... '@': path.join(__dirname, './src/'), ...
should be
... '@': path.join(__dirname, '../src/renderer'), ...
and for example the code below will working
import SystemInformation from '@/components/About/SystemInformation.vue' ...
Same problem with src alias and config in _scripts/webpack.main.config.js
_scripts/webpack.main.config.js
The text was updated successfully, but these errors were encountered:
Well the purpose for the current settings was to make same alias available for all type of scripts, whether its main, renderer or worker.
main
renderer
worker
Does this not work?
import SystemInformation from '@/renderer/components/About/SystemInformation.vue'
Sorry, something went wrong.
Ok I got it.
It's not working, the error info is:
./src/renderer/components/Help.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Help.vue?vue&type=script&lang=js&) Module not found: Error: Can't resolve '@/renderer/components/About/SystemInformation.vue' in '/Users/yrq/Desktop/project/vue-electron/src/renderer/components'
If change @ value to path.join(__dirname, '../src/'), it works.
@
path.join(__dirname, '../src/')
Thanks, I have updated the resolve path.
65aebf9
No branches or pull requests
In
_scripts/webpack.renderer.config.js
.should be
and for example the code below will working
Same problem with src alias and config in
_scripts/webpack.main.config.js
The text was updated successfully, but these errors were encountered: