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

Vue-JSX babel error when using onInput #85

Open
byrney opened this issue Dec 7, 2019 · 0 comments
Open

Vue-JSX babel error when using onInput #85

byrney opened this issue Dec 7, 2019 · 0 comments

Comments

@byrney
Copy link

byrney commented Dec 7, 2019

This is the vue-jsx boilerplate with an additional input element added.

https://codepan.net/gist/cc78568ac0a9335de179dc6b6e7188dd

The following babel error shows up in the console:

Error: This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed  from that module, such as 'addNamed' or 'addDefault'.
    at e.a.addImport (https://cdn.jsdelivr.net/npm/@babel/[email protected]/babel.min.js:1:306664)
    at e.a.addImport (https://cdn.jsdelivr.net/npm/@babel/[email protected]/babel.min.js:1:815125)
[snipped]

The repro does not use event modifiers but maybe that feature needs to be disabled?
https://github.com/vuejs/babel-preset-vue#jsx-features says they are not supported

byrney added a commit to byrney/codepan that referenced this issue Dec 9, 2019
* Update the vue.jsx preset to use https://github.com/vuejs/jsx
* Remove the merge-props helper (I think it's included in the above)
* Update babel to a compatible version (beta 41)

This fixes the error in egoist#85 but, I'm not sure what other impact
it would have...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant