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
running the same snippet together with babel --plugins rewire <filename>.js leads to an error message
TypeError: <filename.js>: Cannot read property 'declarations' of undefined
at ..../babel-plugin-rewire.js:210:49
....
Just to give some context why somebody would export a undefined variable (it's actually not my choice). We work on a Typescript project and Typescript offers the possibility for defining enums like
export enum Status = { LOADING, SUCCESS, FAILURE }
this get's compiled from the typescript compiler into
When exporting undefined variables, stand-alone
babel <filename>.js
transpiles the following just fineis translated to
running the same snippet together with
babel --plugins rewire <filename>.js
leads to an error messageJust to give some context why somebody would export a undefined variable (it's actually not my choice). We work on a Typescript project and Typescript offers the possibility for defining enums like
this get's compiled from the typescript compiler into
trying to run that code through babel with rewire plugins leads to the error described above.
The text was updated successfully, but these errors were encountered: