codepan
codepan copied to clipboard
Vue-JSX babel error when using `onInput`
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