next.js
next.js copied to clipboard
Nextjs 8 with Atlaskit Atlassian transpilation issues
Bug report
> SyntaxError: Unexpected token export
> (function (exports, require, module, __filename, __dirname) { export { default } from './components/Button';
Describe the bug
With version 7 of Nextjs worked well now gives error with all components of atlaskits but can not correct it
To Reproduce
Clone this repo https://github.com/asotoglez/nextjs-with-atlaskit.git
npm i
npm run dev
Hi, this is due to non-transpiled node_modules. In Next.js we don't transpile files from node_modules by default since they should already be transpiled. This was the case previously also. You might have used a community plugin that enabled transpiling of node_modules before.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.