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
While trying to use this library (version 1.1.6) with next.js (version 10) I get the following error.
.../site/node_modules/react-every-layout/lib/index.js:1
import Box from './layouts/Box';
^^^
SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:720:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:788:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at eval (webpack-internal:///react-every-layout:1:18)
at Object.react-every-layout (.../site/.next/server/pages/index.js:571:1)
at __webpack_require__ (.../site/.next/server/pages/index.js:23:31)
at eval (webpack-internal:///./components/layout.js:9:76)
From what I can tell, I can't see why this is a webpack error. The syntax of the import Box from './layouts/Box'; looks legit to me. The Box is exporting a default value. 🤔
The text was updated successfully, but these errors were encountered:
While trying to use this library (version 1.1.6) with next.js (version 10) I get the following error.
From what I can tell, I can't see why this is a webpack error. The syntax of the
import Box from './layouts/Box';
looks legit to me. The Box is exporting a default value. 🤔The text was updated successfully, but these errors were encountered: