sintaxi/harp

Error in Contextify Script

bretonio opened this issue · 0 comments

I have used Harp for several years now and it has served me everything about templating.

But lately it has begun to throw this fatal error when running harp server.

  node[29660]: ../src/node_contextify.cc:628:static void node::contextify::ContextifyScript::New(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[1]->IsString()' failed.
 1: 0x948d20 node::Abort() [node]
 2: 0x948db5  [node]
 3: 0x946d8e node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) [node]
 4: 0xb9698f  [node]
 5: 0xb98952 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [node]
 6: 0x3d9e9704fb5d 

My current node version is 11.6.0 and runs on Debian. Harp version is 0.25.0.

When I downgrade the Node version to 6.5.0, however, I am good to go again — nvm use 6.5.0.

Installing contextify globally and locally as suggested has no effect. In fact, after installing the command nvm list contextify returns empty.

Another workaround was to set nvm use 6.5.0 and then run npm install -g node-inspector --unsafe-perm as per this thread. There the node version used was 5.2.0.

Just a heads up.

It may not be a Harp issue strictly speaking and I am sorry if so. Thanks.