next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Nextjs 8 with Atlaskit Atlassian transpilation issues

Open alesoto13 opened this issue 7 years ago • 2 comments

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

alesoto13 avatar Jun 01 '19 06:06 alesoto13

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.

ijjk avatar Jun 01 '19 11:06 ijjk

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.

balazsorban44 avatar Jan 31 '22 14:01 balazsorban44