airbnb / airbnb/react-with-direction
Impact babel-plugin-transform-replace-object-assign
- Dominant language
- JavaScript
- Stars
- 189
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
i getting the following error while importing DateRangePicker lib.
Configuring module specifier with a string is no longer supported. Configure with { "moduleSpecifier": "object.assign" } instead of "object.assign".
`ERROR in ./node_modules/react-with-direction/dist/proptypes/brcast.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: C:/work/POC/pq-client-develop/node_modules/react-with-direction/dist/proptypes/brcast.js: Configuring module specifier with a string is no longer supported. Configure with { "moduleSpecifier": "object.assign" } instead of "object.assign".
at PluginPass.exit (C:\work\POC\pq-client-develop\node_modules\babel-plugin-transform-replace-object-assign\lib\index.js:23:19)
at newFn (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\visitors.js:276:21)
at NodePath._call (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\path\context.js:76:18)
at NodePath.call (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\path\context.js:48:17)
at NodePath.visit (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\path\context.js:117:8)
at TraversalContext.visitQueue (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\context.js:150:16)
at TraversalContext.visitSingle (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\context.js:108:19)
at TraversalContext.visit (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\context.js:192:19)
at Function.traverse.node (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\index.js:114:17)
at traverse (C:\work\POC\pq-client-develop\node_modules\babel-traverse\lib\index.js:79:12)
at File.transform (C:\work\POC\pq-client-develop\node_modules\babel-core\lib\transformation\file\index.js:516:35)
at C:\work\POC\pq-client-develop\node_modules\babel-core\lib\transformation\pipeline.js:50:19
at File.wrap (C:\work\POC\pq-client-develop\node_modules\babel-core\lib\transformation\file\index.js:532:16)
at Pipeline.transform (C:\work\POC\pq-client-develop\node_modules\babel-core\lib\transformation\pipeline.js:47:17)
at transpile (C:\work\POC\pq-client-develop\node_modules\babel-loader\lib\index.js:50:20)
at C:\work\POC\pq-client-develop\node_modules\babel-loader\lib\fs-cache.js:118:18
@ ./node_modules/react-with-styles/lib/withStyles.js 50:14-67
@ ./node_modules/react-dates/lib/components/CalendarMonth.js
@ ./node_modules/react-dates/lib/index.js
@ ./node_modules/react-dates/index.js
@ ./src/js/components/CourseInfo/courseInfo.jsx
@ ./src/js/components/CourseInfo/index.js
@ ./src/js/components/index.js
@ ./src/js/index.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:9000 ./src/js/index.js`
i stuck by this.
Ref: https://github.com/newoga/babel-plugin-transform-replace-object-assign
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported Babel loader error while importing DateRangePicker and compare the plugin configuration with the referenced babel-plugin-transform-replace-object-assign guidance. Verify the fix by importing DateRangePicker through the shown src/js entry path and confirming the Babel module-specifier error no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100