Closed marsrobertson closed 2 months ago
Same issue persists in other prod-debug.js
files:
Presumably all of them needs updating.
Some of it has been fixed here: https://github.com/labrocadabro/ezsandbox/pull/1/files
I've made a merge request to the task template (which is where this needs to be changed). But instead of creating the directory, prod-debug will provide a more informative message and exit.
This is because there are two reasons this error usually occurs - one is running prod-debug before adding the task to the desktop node. This fix sort of deals with that but it's wonky - when I tested this and added the task after running prod-debug, I couldn't see the task until I restarted the node.
But the second reason it occurs is that the developer is using the wrong task ID. Creating a directory in that situation wouldn't help them diagnose the problem.
This is because there are two reasons this error usually occurs - one is running prod-debug before adding the task to the desktop node.
I thought that's the default way... Run prod-debug
first to build / compile in order obtain the task ID.
Bottom line: that should be smooth, simple, intuitive, just works :)
Error I was getting:
Here: https://github.com/koii-network/ezsandbox/blob/53ca97a2e04f2667229fb08e1bd227bd4ef4fc33/Lesson%201/EZ-testing-task/prod-debug.js#L63-L69
Need to add:
And on top of the file:
const path = require('path');