Can't alias vue for compiler included build
See original GitHub issueVue doesn’t seem to alias correctly so I can use the compiler included build.
To repro I have used an external library vuejs-datepicker which must have template: code and is throwing the following
I have tried a bunch of variations in the alias config field, including those mentioned here on the vue js docs.
https://vuejs.org/v2/guide/installation.html#Explanation-of-Different-Builds
if i alias the field with something like ‘vue-alias’ then import vue from 'vue-alias'
I get pass the error but I am in even more pain as other libraries that use vue don’t know where to look
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Vue cli 3 project alias src to @ or ~/ not working
For Vue CLI you need to create a file in the root folder of project - jsconfig.json { "include": ["./src/**/*"], "compilerOptions": ...
Read more >Vue use the compiler-included build - Get Help
I'm getting a Vue warn that prevents my page from loading: ps: I'm not using build, I'm using yarn serve [Vue warn]: You...
Read more >vue/compat
In the build setup, alias vue to @vue/compat and enable compat mode via Vue compiler options. Example Configs. vue-cli.
Read more >FAQ | Vetur - GitHub Pages
If you don't have any package.json in your project, Vetur can't know the Vue version and component data from other libs. Vetur assumes...
Read more >jsconfig.json Reference - Visual Studio Code
For IntelliSense to work with webpack aliases, you need to specify the paths keys with a glob pattern. For example, for alias 'ClientApp':...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Updated
externals
configuration to whitelist specific modules, in this casevue
. To anybody coming to this later, here’s a fix…webpack.renderer.config.js
This fix has been applied in the
dev
branch. See #171 for more details.Today I also encountered the same problem checkout this setting (webpack.renderer.config.js) Only need to comment out this line
change alieas config as
rerun