Skip to content

1.5 fails build with "Error: StringMap expected string key" #35

@Blackbaud-KevinHutson

Description

@Blackbaud-KevinHutson

@lawrencec Hey, I think there may be an issue with 1.5.
Note that 1.4 seems to be working fine so it's not an emergency for us as I just pinned the version to 1.4.0.

This morning we kicked off a Jenkins build which runs our app that uses Unroll.
package.json was set to ^1.1.0 so our build installed 1.5 and got the following.

abbreviated Jenkins console output:

unroll@1.5.0 node_modules/unroll

...later...
[661] ./~/unroll/index.js 42 bytes {0} [built] [1 error]
... and finally ...

ERROR in ./~/unroll/lib/unroll.js
Module build failed: Error: StringMap expected string key
    at stringmap.set (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/node_modules/stringmap/stringmap.js:99:19)
    at Scope.add (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/build/es5/scope.js:102:17)
    at /root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/build/es5/scopetools.js:38:25
    at Array.forEach (native)
    at createScopes (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/build/es5/scopetools.js:36:27)
    at visit (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/node_modules/ordered-ast-traverse/ordered-ast-traverse.js:25:19)
    at visit (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/node_modules/ordered-ast-traverse/ordered-ast-traverse.js:43:25)
    at visit (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/node_modules/ordered-ast-traverse/ordered-ast-traverse.js:46:21)
    at visit (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/node_modules/ordered-ast-traverse/ordered-ast-traverse.js:43:25)
    at traverse (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/node_modules/ordered-ast-traverse/ordered-ast-traverse.js:56:5)
    at Object.setupScopeAndReferences (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/build/es5/scopetools.js:18:5)
    at ngAnnotate (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/node_modules/ng-annotate/build/es5/ng-annotate-main.js:1123:16)
    at Object.module.exports (/root/workspace/segmentation-component_build/node_modules/ng-annotate-loader/loader.js:68:24)
 @ ./~/unroll/index.js 1:17-40
�[32m05 09 2017 12:34:14.325:INFO [karma]: �[39mKarma v0.13.22 server started at http://localhost:9876/
�[32m05 09 2017 12:34:14.334:INFO [launcher]: �[39mStarting browser PhantomJS
�[32m05 09 2017 12:34:15.122:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: �[39mConnected on socket KZI_32P4m5GY4UgkAAAA with id 53994316
�[31mPhantomJS 2.1.1 (Linux 0.0.0) ERROR�[39m
  Error: Cannot find module "./lib/unroll"
  at /root/workspace/segmentation-component_build/tests.webpack.conf.js:255299 <- webpack:///~/unroll/index.js:1:0

PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 0�[31m ERROR�[39m (3.228 secs / 0 secs)

[12:34:18] 'test' errored after 2.12 min
[12:34:18] Error: 1
    at formatError (/root/.nvm/versions/node/v4.4.3/lib/node_modules/gulp/bin/gulp.js:169:10)
    at Gulp.<anonymous> (/root/.nvm/versions/node/v4.4.3/lib/node_modules/gulp/bin/gulp.js:195:15)
    at emitOne (events.js:77:13)
    at Gulp.emit (events.js:169:7)
    at Gulp.Orchestrator._emitTaskDone (/root/workspace/segmentation-component_build/node_modules/gulp/node_modules/orchestrator/index.js:264:8)
    at /root/workspace/segmentation-component_build/node_modules/gulp/node_modules/orchestrator/index.js:275:23
    at finish (/root/workspace/segmentation-component_build/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:21:8)
    at cb (/root/workspace/segmentation-component_build/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:29:3)
    at removeAllListeners (/root/workspace/segmentation-component_build/node_modules/karma/lib/server.js:336:7)
    at Server.<anonymous> (/root/workspace/segmentation-component_build/node_modules/karma/lib/server.js:347:9)
    at Server.g (events.js:260:16)
    at emitNone (events.js:72:20)
    at Server.emit (events.js:166:7)
    at emitCloseNT (net.js:1521:8)
    at nextTickCallbackWith1Arg (node.js:431:9)
    at process._tickCallback (node.js:353:17)
:jsTest FAILED
:jsTest took 165820ms

Let me know if I can provide more information that might be helpful to reproduce this issue.
I might be able to lend some of my time to pinpoint the cause.

This is for an AngularJS (1.x) app using Gulp, Karma and Jasmine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions