React Native error: [BABEL] unknown: Preset /* your preset */ requires a filename to be set when babel is called directly.
Hahlh opened this issue · comments
[BABEL] unknown: Preset /* your preset */ requires a filename to be set when babel is called directly,
`babel.transform(code, { filename: 'file.ts', presets: [/* your preset */] });`
See https://babeljs.io/docs/en/options#filename for more information.
This error occurs when trying to extract a component to a file. A filename was specified and the extension works as expected with React in general.
In.