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 is an issue in Webpack v4, without any real solution for the time being: webpack/webpack#10227
Essentially, as you've raised the browserlist targets so that optional chaining isn't transpiled out, Webpack (or rather, Acorn) ends up attempting to parse them which it cannot.
What is the current behaviour?
Adding a broswerslist config like this causes errors on optional chaining or nullish coalescing syntax
Steps to Reproduce
Steps to reproduce the behavior:
npx preact-cli create typescript <project>
npm run build
The text was updated successfully, but these errors were encountered: