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
And then, when I include this npm module in another project, and build the project with Webpack, it says:
[0] ./~/react-styling/babel-transpiled-modules/index.js
[0] Module build failed: Error: G:/work/cinema/node_modules/babel-loader/index.js?optional[]=runtime&stage=0!G:/work/cin
ema/node_modules/react-styling/babel-transpiled-modules/index.js: No element indexed by 1
[0] at ArraySet_at [as at] (G:\work\cinema\node_modules\babel-core\node_modules\source-map\lib\source-map\array-set.
js:93:11)
[0] at SourceMapConsumer_originalPositionFor [as originalPositionFor] (G:\work\cinema\node_modules\babel-core\node_m
odules\source-map\lib\source-map\source-map-consumer.js:612:36)
[0] at SourceMapGenerator.<anonymous> (G:\work\cinema\node_modules\babel-core\node_modules\source-map\lib\source-map
\source-map-generator.js:196:45)
[0] at Array.forEach (native)
[0] at MappingList_forEach [as unsortedForEach] (G:\work\cinema\node_modules\babel-core\node_modules\source-map\lib\
source-map\mapping-list.js:48:19)
[0] at SourceMapGenerator_applySourceMap [as applySourceMap] (G:\work\cinema\node_modules\babel-core\node_modules\so
urce-map\lib\source-map\source-map-generator.js:193:22)
[0] at File.mergeSourceMap (G:\work\cinema\node_modules\babel-core\lib\transformation\file\index.js:519:26)
[0] at File.generate (G:\work\cinema\node_modules\babel-core\lib\transformation\file\index.js:808:25)
[0] at File.transform (G:\work\cinema\node_modules\babel-core\lib\transformation\file\index.js:631:17)
[0] at G:\work\cinema\node_modules\babel-core\lib\transformation\pipeline.js:168:19
[0] at File.wrap (G:\work\cinema\node_modules\babel-core\lib\transformation\file\index.js:645:16)
[0] at Pipeline.transform (G:\work\cinema\node_modules\babel-core\lib\transformation\pipeline.js:165:17)
[0] at transpile (G:\work\cinema\node_modules\babel-loader\index.js:12:22)
[0] at Object.module.exports (G:\work\cinema\node_modules\babel-loader\index.js:69:12)
[0] @ ./client/pages/layout.js 26:20-44
I googled a bit on this one and people from Mozilla say that this is source-map related: source-maps tell that there's a second one, but it's not there mozilla/source-map#76
In my case the issue is resolved by resorting from --source-maps inline to --source-maps
I created issue in the Webpack repo, as well as here
The text was updated successfully, but these errors were encountered:
I have a little project of my own
https://github.com/halt-hammerzeit/react-styling
And I compile it for release like this
And then, when I include this npm module in another project, and build the project with Webpack, it says:
I googled a bit on this one and people from Mozilla say that this is source-map related: source-maps tell that there's a second one, but it's not there
mozilla/source-map#76
In my case the issue is resolved by resorting from
--source-maps inline
to--source-maps
I created issue in the Webpack repo, as well as here
The text was updated successfully, but these errors were encountered: