Skip to content
New issue

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

allow default imports from modules #250

Closed
khanharis87 opened this issue Nov 1, 2017 · 4 comments
Closed

allow default imports from modules #250

khanharis87 opened this issue Nov 1, 2017 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@khanharis87
Copy link
Contributor

Reproduction Steps?

  • Upgrade to vue.js 2.5
  • remove “allowSyntheticDefaultImports”: true from tsconfig.json (as users are required to use ES-style imports in all cases.)

What is Expected?

import VueI18n from 'vue-i18n'

to work.

What is actually happening?

Typescript error TS1192 : Module '"project/node-modules/vue-i18n/types/index"' has no default export

@khanharis87
Copy link
Contributor Author

export default VueI18n;
than
export = VueI18n;
inside types/index.d.ts fileworks for me, but I am unable to pass all the test

@kazupon kazupon added help wanted Extra attention is needed TypeScript labels Nov 2, 2017
@ryall
Copy link

ryall commented Dec 18, 2017

Why was this closed? The issue is still present from what I can see.

@gouflv
Copy link

gouflv commented Dec 19, 2017

Same problem in current version

@kazupon
Copy link
Owner

kazupon commented Dec 19, 2017

sorry 🙇
released v7.3.3
please check it!
https://github.com/kazupon/vue-i18n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants