[components] Build fails with "Uncaught SyntaxError: Identifier 'eh' has already been declared" when using the components imported from @portaljs/components with next-mdx-remote #1058
Build fails with "Uncaught SyntaxError: Identifier 'eh' has already been declared" when using the components imported from @portaljs/components with next-mdx-remote:
Issue
Build fails with "Uncaught SyntaxError: Identifier 'eh' has already been declared" when using the components imported from
@portaljs/components
withnext-mdx-remote
:However, when copying over the components' code directly to the project, there is no error:
I suspect there must be something off with the build settings of the @portaljs/components package?
Reproduction
npm i
npm run build && npm start