Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Can't load vue from webpack alias #25

Closed
herozhou opened this issue Sep 29, 2017 · 2 comments
Closed

Can't load vue from webpack alias #25

herozhou opened this issue Sep 29, 2017 · 2 comments

Comments

@herozhou
Copy link

I cant get vue 'vue/types/index' from like this,

//main.ts 

import vue from 'vue'

But I want to use some vue plugin ,so I have to use vue from 'vue/dist/vue.esm.js'
.Not from 'vue/types/index'。I add webpack alias but it doesn't work.
image

image

How cant I use both vue (js and ts) in my project ?

@herozhou
Copy link
Author

and some error like this

image

@DanielRosenwasser
Copy link
Member

Sorry about the delay here; I bellieve you need to use allowSyntheticDefaultImports for this to work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants