Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update babel-plugin-module-resolver version in with-global-stylesheet #4360

Conversation

yhirano55
Copy link
Contributor

Summary

I found build error, so I've updated babel-plugin-module-resolver.

Logs

% yarn build
yarn run v1.6.0
$ next build
> Using external babel configuration
> Location: "/path/to/with-global-stylesheet/.babelrc"
> Failed to build
{ Error: (client) ./pages/index.js
Module build failed: TypeError: Cannot read property '1' of undefined
    at Plugin.manipulateOptions (/path/to/with-global-stylesheet/node_modules/babel-plugin-module-resolver/lib/index.js:88:9)
    at normalizeOptions (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/normalize-opts.js:80:17)
    at runSync (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/index.js:34:84)
    at runAsync (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/index.js:25:14)
    at /path/to/with-global-stylesheet/node_modules/@babel/core/lib/transform.js:32:34
    at process._tickCallback (internal/process/next_tick.js:176:11)
 @ multi ./pages/index.js
    at /path/to/with-global-stylesheet/node_modules/next/dist/server/build/index.js:141:31
    at runWithDependencies (/path/to/with-global-stylesheet/node_modules/webpack/lib/MultiCompiler.js:154:4)
    at /path/to/with-global-stylesheet/node_modules/async/dist/async.js:1126:9
    at /path/to/with-global-stylesheet/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/path/to/with-global-stylesheet/node_modules/async/dist/async.js:1050:13)
    at /path/to/with-global-stylesheet/node_modules/async/dist/async.js:958:16
    at /path/to/with-global-stylesheet/node_modules/async/dist/async.js:1123:13
    at runCompilers (/path/to/with-global-stylesheet/node_modules/webpack/lib/MultiCompiler.js:96:47)
    at fn (/path/to/with-global-stylesheet/node_modules/webpack/lib/MultiCompiler.js:101:6)
    at compiler.run (/path/to/with-global-stylesheet/node_modules/webpack/lib/MultiCompiler.js:150:5)
    at emitRecords.err (/path/to/with-global-stylesheet/node_modules/webpack/lib/Compiler.js:265:13)
    at Compiler.emitRecords (/path/to/with-global-stylesheet/node_modules/webpack/lib/Compiler.js:371:38)
    at emitAssets.err (/path/to/with-global-stylesheet/node_modules/webpack/lib/Compiler.js:258:10)
    at applyPluginsAsyncSeries1.err (/path/to/with-global-stylesheet/node_modules/webpack/lib/Compiler.js:364:12)
    at next (/path/to/with-global-stylesheet/node_modules/tapable/lib/Tapable.js:218:11)
    at Compiler.compiler.plugin (/path/to/with-global-stylesheet/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
  errors:
   [ '(client) ./pages/index.js\nModule build failed: TypeError: Cannot read property \'1\' of undefined\n    at Plugin.manipulateOptions (/path/to/with-global-stylesheet/node_modules/babel-plugin-module-resolver/lib/index.js:88:9)\n    at normalizeOptions (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/normalize-opts.js:80:17)\n    at runSync (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/index.js:34:84)\n    at runAsync (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/index.js:25:14)\n    at /path/to/with-global-stylesheet/node_modules/@babel/core/lib/transform.js:32:34\n    at process._tickCallback (internal/process/next_tick.js:176:11)\n @ multi ./pages/index.js',
     '(server) ./pages/index.js\nModule build failed: TypeError: Cannot read property \'1\' of undefined\n    at Plugin.manipulateOptions (/path/to/with-global-stylesheet/node_modules/babel-plugin-module-resolver/lib/index.js:88:9)\n    at normalizeOptions (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/normalize-opts.js:80:17)\n    at runSync (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/index.js:34:84)\n    at runAsync (/path/to/with-global-stylesheet/node_modules/@babel/core/lib/transformation/index.js:25:14)\n    at /path/to/with-global-stylesheet/node_modules/@babel/core/lib/transform.js:32:34\n    at process._tickCallback (internal/process/next_tick.js:176:11)\n @ multi ./pages/index.js' ],
  warnings: [] }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I found build error, so I've updated babel-plugin-module-resolver
Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks!

@timneutkens timneutkens merged commit 8c5c2c2 into vercel:canary May 13, 2018
@yhirano55 yhirano55 deleted the update-babel-plugin-module-resolver-in-with-global-stylesheet branch May 13, 2018 17:25
lependu pushed a commit to lependu/next.js that referenced this pull request Jun 19, 2018
…vercel#4360)

I found build error, so I've updated babel-plugin-module-resolver
@lock lock bot locked as resolved and limited conversation to collaborators May 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants