You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem is likely caused by another plugin injecting "_RewireAPI__" without registering it in the scope tracker. If you are the author of that plugin, please use "scope.registerDeclaration(declarationPath)". The exported identifier "_RewireAPI__" is not declared in Babel's scope tracker as a JavaScript value binding, and "@babel/plugin-transform-typescript" never encountered it as a TypeScript type declaration. It will be treated as a JavaScript value.
The text was updated successfully, but these errors were encountered:
Ranjeet-Naidu
changed the title
babel/plugin-transform-typescript and babel-plugin-rewire
babel/plugin-transform-typescript and rewire
Dec 19, 2019
This has been driving us crazy and we'd love to see a fix for it! It does seem like this project is dead, though. We're working on switching to Jest and using its built-in mocks instead.
Hi guys the babel plugin rewire doesn't seem to work with babel 7. Has this issue been previously raised?
"@babel/core": "^7.7.4",
"babel-plugin-rewire": "^1.2.0"
In karma config
This problem is likely caused by another plugin injecting "_RewireAPI__" without registering it in the scope tracker. If you are the author of that plugin, please use "scope.registerDeclaration(declarationPath)". The exported identifier "_RewireAPI__" is not declared in Babel's scope tracker as a JavaScript value binding, and "@babel/plugin-transform-typescript" never encountered it as a TypeScript type declaration. It will be treated as a JavaScript value.
The text was updated successfully, but these errors were encountered: