Updated App Scripts Error


#1

I… just got this error when updating my app scripts:

C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:115
node.add(nextLine.substr(0, mapping.generatedColumn));
^

TypeError: Cannot read property ‘substr’ of undefined
at Function. (C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:115:26)
at Array.forEach (native)
at SourceMapConsumer_eachMapping [as eachMapping] (C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\node_modules\source-map\lib\source-map-consumer.js:155:14)
at Function.SourceNode_fromStringWithSourceMap [as fromStringWithSourceMap] (C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:80:24)
at SourceMapSource.node (C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\lib\SourceMapSource.js:42:20)
at ReplaceSource.node (C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\lib\ReplaceSource.js:66:29)
at CachedSource.node (C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\lib\CachedSource.js:12:23)
at C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\lib\ConcatSource.js:40:49
at Array.map (native)
at ConcatSource.node (C:\Users\treva\Documents\Apps\Almost2Donut\node_modules\webpack-sources\lib\ConcatSource.js:39:60)


#2

Error seems to be “substr” not being recognized…?


#3

I just updated my Ionic 2 version to RC 4. Still the same error


#4

Seems to be a webpack error or faulty sourcemap… still unsure how to fix it…


#5

Has all the info you need.