Skip to content

Instantly share code, notes, and snippets.

@theskillwithin
Created May 3, 2018 18:37
Show Gist options
  • Save theskillwithin/094f144d0044441d305d21d5e0305a1d to your computer and use it in GitHub Desktop.
Save theskillwithin/094f144d0044441d305d21d5e0305a1d to your computer and use it in GitHub Desktop.
{
"plugins": [
[
"module-resolver",
{
"root": [
"."
],
"alias": {
"styles": "./styles"
},
"cwd": "babelrc"
}
],
[
"wrap-in-js",
{
"extensions": [
"css$",
"scss$"
]
}
]
],
"presets": [
"next/babel",
"es2015",
"stage-0"
],
"ignore": []
}
➜ SSR git:(release/nodejs-react-upgrade) ✗ npm run dev
> [email protected] dev /Users/aupeterson/Projects/knowledgebase/SSR
> node server.js
/Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^
Error: Plugin 0 specified in "/Users/aupeterson/Projects/knowledgebase/SSR/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/Users/aupeterson/Projects/knowledgebase/SSR/node_modules/next/babel.js")
at Plugin.init (/Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/Users/aupeterson/Projects/knowledgebase/SSR/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment