Hello and Happy Thanksgiving here in the USA!
I am in the middle of deploying a cascade story map to a server. I have been following the instructions in this article: https://developerscorner.storymaps.arcgis.com/change-the-cascade-header-color-2ed0d5653a56
After completing the changes and updating index.html (which is toward the end of the above referenced document), I opened a command prompt in my working directory and ran grunt. Runs along, but the following error occurs before completing the run:
Running "requirejs:builder" (requirejs) task
grunt[8564]: src\node_contextify.cc:628: Assertion `args[1]->IsString()' failed.
1: 00007FF71DBEECE5
2: 00007FF71DBC8196
3: 00007FF71DBC8261
4: 00007FF71DB9B56A
5: 00007FF71E3F2E52
6: 00007FF71E3F3FD8
7: 00007FF71E3F330D
8: 00007FF71E3F322B
9: 00000027E8ADC5C1
When I look at the deploy folder, all it contains is an empty app folder. No other files.
Any ideas? Thanks!
Full text of command prompt window is below:
C:\Users\sedlo\Documents\GitHub\storymap-cascade>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
C:\Users\sedlo\Documents\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
C:\Users\sedlo\Documents\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
>> 1 path cleaned.
Running "clean:deploy" (clean) task
>> 1 path 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[8564]: src\node_contextify.cc:628: Assertion `args[1]->IsString()' failed.
1: 00007FF71DBEECE5
2: 00007FF71DBC8196
3: 00007FF71DBC8261
4: 00007FF71DB9B56A
5: 00007FF71E3F2E52
6: 00007FF71E3F3FD8
7: 00007FF71E3F330D
8: 00007FF71E3F322B
9: 00000027E8ADC5C1
Returns to a command prompt.
I'm also having this very issue. Was this matter ever resolved? if so, how were you able to resolve it?
Please check to see if you are using a supported version of Node (v8). We've seen similar issues when trying to use Node v10. You can use nvm to swap to v8.