kentcdodds/babel-plugin-codegen
Auf GitHub ansehenProperty value expected type of string but got null
Open
#17 geöffnet am 26. Okt. 2018
bughelp wanted
Repository-Metriken
- Stars
- (347 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
babel-plugin-codegenversion: ^3.0.0nodeversion: 10.12.0npm(oryarn) version: 6.4.1
Relevant code or config
// @codegen
const hello = 'hello';
module.exports = `
export default {};
`;
I was expecting the simple code above to work but it just gives the error mentioned in the title.

However, if we remove the line const hello = 'hello', everything works as expected and export default {}; it's correctly generated