The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled #84
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
cat: typings 👮
Typescript types related issues
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
Description
This worked fine in previous versions. Only started happening over the latest update.
Reproducible Demo
Code: https://github.com/reactive/data-client/tree/master/examples/github-app
File that triggers: https://github.com/reactive/data-client/blob/master/examples/github-app/src/resources/Issue.tsx
Stackblitz location to see error : https://stackblitz.com/github/reactive/data-client/tree/master/examples/github-app?file=src%2Fresources%2FIssue.tsx
Webpack config wyw-in-js integration: https://github.com/ntucker/anansi/blob/60736b7b2b13fd3d30a24c8a7f4365d525c6157b/packages/webpack-config-anansi/src/base/index.js#L79
Related babel config integration: https://github.com/ntucker/anansi/blob/60736b7b2b13fd3d30a24c8a7f4365d525c6157b/packages/babel-preset-anansi/index.js#L27
The text was updated successfully, but these errors were encountered: