mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
6cdd7cb291
Hello! I have updated `babel-plugin-module-resolver` to `^3.1.1` and moved it to `devDependencies` in [with-absolute-imports](https://github.com/zeit/next.js/tree/canary/examples/with-absolute-imports) example to make it work with Babel 7 :) ## Error logs ``` zhenyatelegin@MBP-Zhenya ~/Desktop/next.js/examples/with-absolute-imports canary yarn build yarn run v1.5.1 warning package.json: No license field $ next build > Failed to build { Error: (client) ./pages/index.js Module build failed: Error: Cannot find module 'babel-plugin-module-resolver' from '/Users/zhenyatelegin/Desktop/next.js/examples/with-absolute-imports' at Function.module.exports [as sync] (/Users/zhenyatelegin/Desktop/next.js/node_modules/resolve/lib/sync.js:40:15) at resolveStandardizedName (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:78:29) at resolvePlugin (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:27:10) at loadPlugin (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:35:18) at createDescriptor (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:152:21) at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:104:12 at Array.map (<anonymous>) at createDescriptors (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:103:27) at createPluginDescriptors (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:99:10) at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:50:19 at plugins (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:40:25) at mergeChainOpts (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:296:68) at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:251:7 at buildRootChain (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:85:20) at loadPrivatePartialConfig (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/partial.js:41:53) at Object.loadPartialConfig (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/partial.js:66:16) @ multi ./pages/index.js at /Users/zhenyatelegin/Desktop/next.js/dist/server/build/index.js:144:31 at runWithDependencies (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/MultiCompiler.js:154:4) at /Users/zhenyatelegin/Desktop/next.js/node_modules/async/dist/async.js:1140:9 at /Users/zhenyatelegin/Desktop/next.js/node_modules/async/dist/async.js:473:16 at iteratorCallback (/Users/zhenyatelegin/Desktop/next.js/node_modules/async/dist/async.js:1064:13) at /Users/zhenyatelegin/Desktop/next.js/node_modules/async/dist/async.js:969:16 at /Users/zhenyatelegin/Desktop/next.js/node_modules/async/dist/async.js:1137:13 at runCompilers (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/MultiCompiler.js:96:47) at fn (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/MultiCompiler.js:101:6) at compiler.run (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/MultiCompiler.js:150:5) at emitRecords.err (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/Compiler.js:265:13) at Compiler.emitRecords (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/Compiler.js:371:38) at emitAssets.err (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/Compiler.js:258:10) at applyPluginsAsyncSeries1.err (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/Compiler.js:364:12) at next (/Users/zhenyatelegin/Desktop/next.js/node_modules/tapable/lib/Tapable.js:218:11) at Compiler.compiler.plugin (/Users/zhenyatelegin/Desktop/next.js/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) errors: [ '(client) ./pages/index.js\nModule build failed: Error: Cannot find module \'babel-plugin-module-resolver\' from \'/Users/zhenyatelegin/Desktop/next.js/examples/with-absolute-imports\'\n at Function.module.exports [as sync] (/Users/zhenyatelegin/Desktop/next.js/node_modules/resolve/lib/sync.js:40:15)\n at resolveStandardizedName (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:78:29)\n at resolvePlugin (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:27:10)\n at loadPlugin (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:35:18)\n at createDescriptor (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:152:21)\n at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:104:12\n at Array.map (<anonymous>)\n at createDescriptors (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:103:27)\n at createPluginDescriptors (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:99:10)\n at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:50:19\n at plugins (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:40:25)\n at mergeChainOpts (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:296:68)\n at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:251:7\n at buildRootChain (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:85:20)\n at loadPrivatePartialConfig (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/partial.js:41:53)\n at Object.loadPartialConfig (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/partial.js:66:16)\n @ multi ./pages/index.js', '(server) ./pages/index.js\nModule build failed: Error: Cannot find module \'babel-plugin-module-resolver\' from \'/Users/zhenyatelegin/Desktop/next.js/examples/with-absolute-imports\'\n at Function.module.exports [as sync] (/Users/zhenyatelegin/Desktop/next.js/node_modules/resolve/lib/sync.js:40:15)\n at resolveStandardizedName (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:78:29)\n at resolvePlugin (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:27:10)\n at loadPlugin (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/files/plugins.js:35:18)\n at createDescriptor (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:152:21)\n at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:104:12\n at Array.map (<anonymous>)\n at createDescriptors (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:103:27)\n at createPluginDescriptors (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:99:10)\n at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:50:19\n at plugins (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-descriptors.js:40:25)\n at mergeChainOpts (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:296:68)\n at /Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:251:7\n at buildRootChain (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/config-chain.js:85:20)\n at loadPrivatePartialConfig (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/partial.js:41:53)\n at Object.loadPartialConfig (/Users/zhenyatelegin/Desktop/next.js/node_modules/@babel/core/lib/config/partial.js:66:16)\n @ multi ./pages/index.js' ], warnings: [] } error An unexpected error occurred: "Command failed. Exit code: 1 Command: sh Arguments: -c next build Directory: /Users/zhenyatelegin/Desktop/next.js/examples/with-absolute-imports Output: ". info If you think this is a bug, please open a bug report with the information provided in "/Users/zhenyatelegin/Desktop/next.js/examples/with-absolute-imports/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ``` |
||
---|---|---|
.. | ||
active-class-name | ||
basic-css | ||
basic-export | ||
custom-charset | ||
custom-server | ||
custom-server-actionhero | ||
custom-server-express | ||
custom-server-fastify | ||
custom-server-hapi | ||
custom-server-koa | ||
custom-server-micro | ||
custom-server-nodemon | ||
custom-server-polka | ||
custom-server-typescript | ||
data-fetch | ||
form-handler | ||
gh-pages | ||
head-elements | ||
hello-world | ||
layout-component | ||
nested-components | ||
only-client-render-external-dependencies | ||
page-transitions | ||
parameterized-routing | ||
pass-server-data | ||
progressive-render | ||
root-static-files | ||
shared-modules | ||
ssr-caching | ||
svg-components | ||
using-inferno | ||
using-nerv | ||
using-preact | ||
using-router | ||
using-with-router | ||
with-absolute-imports | ||
with-algolia-react-instantsearch | ||
with-amp | ||
with-ant-design | ||
with-ant-design-less | ||
with-antd-mobile | ||
with-aphrodite | ||
with-apollo | ||
with-apollo-and-redux | ||
with-apollo-and-redux-saga | ||
with-apollo-auth | ||
with-app-layout | ||
with-asset-imports | ||
with-babel-macros | ||
with-cerebral | ||
with-componentdidcatch | ||
with-configured-preset-env | ||
with-custom-babel-config | ||
with-custom-reverse-proxy | ||
with-cxs | ||
with-data-prefetch | ||
with-docker | ||
with-dotenv | ||
with-draft-js | ||
with-dynamic-import | ||
with-electron | ||
with-emotion | ||
with-emotion-fiber | ||
with-external-scoped-css | ||
with-fela | ||
with-firebase-authentication | ||
with-firebase-hosting | ||
with-firebase-hosting-and-typescript | ||
with-flow | ||
with-freactal | ||
with-glamor | ||
with-glamorous | ||
with-global-stylesheet | ||
with-global-stylesheet-simple | ||
with-google-analytics | ||
with-hashed-statics | ||
with-higher-order-component | ||
with-i18next | ||
with-immutable-redux-wrapper | ||
with-ioc | ||
with-jest | ||
with-jest-typescript | ||
with-kea | ||
with-loading | ||
with-markdown | ||
with-material-ui | ||
with-mobx | ||
with-mobx-state-tree | ||
with-next-css | ||
with-next-less | ||
with-next-page-transitions | ||
with-next-routes | ||
with-next-sass | ||
with-noscript | ||
with-now-env | ||
with-pkg | ||
with-polyfills | ||
with-portals | ||
with-prefetching | ||
with-pretty-url-routing | ||
with-react-ga | ||
with-react-helmet | ||
with-react-i18next | ||
with-react-intl | ||
with-react-md | ||
with-react-native-web | ||
with-react-toolbox | ||
with-react-uwp | ||
with-react-with-styles | ||
with-reasonml | ||
with-rebass | ||
with-recompose | ||
with-redux | ||
with-redux-code-splitting | ||
with-redux-observable | ||
with-redux-reselect-recompose | ||
with-redux-saga | ||
with-redux-wrapper | ||
with-reflux | ||
with-refnux | ||
with-relay-modern | ||
with-rematch | ||
with-scoped-stylesheets-and-postcss | ||
with-segment-analytics | ||
with-semantic-ui | ||
with-sentry | ||
with-shallow-routing | ||
with-sitemap-and-robots-express-server | ||
with-socket.io | ||
with-static-export | ||
with-styled-components | ||
with-styled-jsx-plugins | ||
with-styled-jsx-postcss | ||
with-styled-jsx-scss | ||
with-styletron | ||
with-sw-precache | ||
with-tailwindcss | ||
with-typescript | ||
with-universal-configuration | ||
with-universal-configuration-runtime | ||
with-url-object-routing | ||
with-videojs | ||
with-webpack-bundle-analyzer | ||
with-webpack-bundle-size-analyzer | ||
with-zones | ||
.babelrc | ||
.gitignore |