Esri / storymap-cascade

The Story Map Cascade℠ app lets you combine narrative text with maps, images, and multimedia content in an engaging, full-screen scrolling experience.
https://storymaps.arcgis.com/en/app-list/cascade/
Apache License 2.0
94 stars 57 forks source link

Aborted (core dumped) when running "requirejs:builder" when building #19

Closed scMarth closed 4 years ago

scMarth commented 4 years ago

I'm having trouble building the application from source code.

All I've done is clone the repository, run npm install and npm install –g grunt-cli and then run the grunt command. Here is a log:

$ grunt
Running "jshint:nls-en" (jshint) task
>> 2 files lint free.

Running "jshint:nls-all" (jshint) task
>> 74 files lint free.

Running "eslint:target" (eslint) task

/home/vince/github/storymap-cascade/src/app/storymaps/tpl/print/media/Text.jsx
  39:21  warning  Dangerous property 'dangerouslySetInnerHTML' found  react/no-danger
  43:35  warning  Dangerous property 'dangerouslySetInnerHTML' found  react/no-danger

/home/vince/github/storymap-cascade/src/app/storymaps/tpl/print/PrintViewReact.jsx
  258:20  warning  Dangerous property 'dangerouslySetInnerHTML' found  react/no-danger

✖ 3 problems (0 errors, 3 warnings)

Running "clean:build" (clean) task
>> 0 paths cleaned.

Running "clean:deploy" (clean) task
>> 0 paths cleaned.

Running "clean:jsapioptim" (clean) task
>> 0 paths cleaned.

Running "clean:fonts" (clean) task
>> 0 paths cleaned.

Running "mkdir:all" (mkdir) task
Creating "deploy/app"...OK
Creating "build"...OK

Running "copy:fonts" (copy) task
Copied 40 files

Running "copy:fonts2" (copy) task
Copied 9 files

Running "copy:fonts3" (copy) task
Copied 6 files

Running "copy:youtube" (copy) task
Copied 1 file

Running "copy:calcite-vars" (copy) task
Copied 2 files

Running "copy:less-in-react" (copy) task
Copied 116 files

Running "copy:hbs-in-react" (copy) task
Copied 63 files

Running "babel:dev" (babel) task

Running "copy:commonResources4react" (copy) task
Created 102 directories, copied 267 files

Running "requirejs:builder" (requirejs) task
grunt[44027]: ../src/node_contextify.cc:649:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[1]->IsString()' failed.
 1: 0x7f06d7cb0a7c node::Abort() [/lib64/libnode.so.72]
 2: 0x7f06d7cb0b17  [/lib64/libnode.so.72]
 3: 0x7f06d7ca3188 node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [/lib64/libnode.so.72]
 4: 0x7f06d806a5d5 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/lib64/libnode.so.72]
 5: 0x7f06d806b67f  [/lib64/libnode.so.72]
 6: 0x7f06d806b968  [/lib64/libnode.so.72]
 7: 0x7f06d806bc9d v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/lib64/libnode.so.72]
 8: 0x7f06d8b30ab9  [/lib64/libnode.so.72]
Aborted (core dumped)
scMarth commented 4 years ago

This might be related to gulp (or node..?) issue.

The solution is to delete package-lock.json and node_modules/ and run npm install again