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
TypeScript interfaces and type aliases that are exported in an object break the dev and prod build. The build will fail with a Module parse failed: Export 'XYZ' is not defined message.
To clarify what I mean with object export, here is a small example:
I did some further research after this problem also started appearing in fresh Next.js 7 and non-next builds. It seems that this is bug in babel:
See: babel/babel#9766 and babel/babel#9763.
Bug report
Describe the bug
TypeScript interfaces and type aliases that are exported in an object break the dev and prod build. The build will fail with a
Module parse failed: Export 'XYZ' is not defined
message.To clarify what I mean with object export, here is a small example:
This used to work fine in Next 7. The bug was probably introduced in https://github.com/zeit/next.js/releases/tag/v8.0.0-canary.12. Version v8.0.0-canary.11 does not have this problem.
To Reproduce
components/List.tsx
)export { Props };
to the last lineSystem information
The text was updated successfully, but these errors were encountered: