You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export async function test(task){
^^^^^^
SyntaxError: Unexpected token 'export'
at new Taskr (D:/xxxxx/xxxxx/node_modules/taskr/lib/taskr.js:21:39)
at Object.<anonymous> (D:/xxxxx/xxxxx/node_modules/taskr/lib/cli/spawn.js:35:9)
at Generator.next (<anonymous>)
at Generator.tryCatcher (D:/xxxxx/xxxxx/node_modules/bluebird/js/release/util.js:16:23)
at PromiseSpawn._promiseFulfilled (D:/xxxxx/xxxxx/node_modules/bluebird/js/release/generators.js:97:49)
Is this the entire file? I think there may be content before/above const WORK_SPACE = process.cwd(); that's affecting this.
Yes,this is all.
This is a project that we just initialized.
System: window 10 EE:18363.1316
And:
It seems to be because of the system, but why does this happen?
I can reproduce this error on win10 computer, but not on Mac
Why?:
The Code will report a strange Syntax Error, but it will run normally after removing
const WORK_SPACE = process.cwd();
Code:
ERROR:
ENV:
node 12.18.3
packages:
"@taskr/clear": "^1.1.0",
"@taskr/esnext": "^1.1.0",
"@taskr/watch": "^1.1.0",
"@vercel/ncc": "^0.27.0",
"node-notifier": "^9.0.0",
"taskr": "^1.1.0",
"typescript": "^4.1.3"
The text was updated successfully, but these errors were encountered: