Page 2 of 2
Re: [VUE 2] typescript type declarations missing
Posted: Tue Jul 20, 2021 4:53 pm
by vtx
Thanks a lot!
Sorry for my late reply, have been busy with some other matters.
Are these changes (the patch) included in the 4.2.1 release?
The above example works fine for me, however, in my project where I'm using the 4.2.1 npm I'm still getting the same error
import './src/WrapperHelper.js';
^^^^^^
SyntaxError: Cannot use import statement outside a module
Re: [VUE 2] typescript type declarations missing
Posted: Wed Jul 21, 2021 7:30 am
by sergey.maltsev
Hi!
Changes were published in 4.1.6
version.
Please check if you have correct babel config in babel.config.js .
Should have something like this:
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
You may compare other project files with attached example which works with 4.2.1
.
As usual if you have a problem please attach application code here so we can check it.
Also please open a separate thread for each question.