Tyriar/vscode-theme-generator

When running "npm install" in vscode to set this up, it returns the error "node_modules/@types/node/index.d.ts:20:1 - error TS1084: Invalid 'reference' directive syntax."

IntangibleMatter opened this issue · 6 comments

Basically the title. I don't really know anything about TypeScript, so I can't resolve this issue myself.

The line it seems to be taking issue with is:
/// <reference lib="es2015" />

So I can't run it.

I can repro, the fix is probably updating typescript or @types/node (v10 seems safe)

Got it working by removing '^' from the version numbers for both the "@types/node" and "typescript" entries in the devDependencies section of the package.json, deleting node_modules directory and running npm install again.
New devDependencies entry in package.json:

"devDependencies": {
    "@types/node": "7.0.10",
    "typescript": "2.2.1",
    "vscode-theme-generator": "*"
}

Removing node_modules, reinstalling modules and running.

rm -rf ./node_modules/ && npm install
npm start

Doesn't seem like a long-term solution, given the old versions used for both these dependencies, but might help anyone in the same situation.

seadb commented

Thank you so much @lvthr, I was able to use this!

Thanks so much @lvthr, that solved my issue as well :)

Thanks for helping people with the workaround, I'd accept a PR to update the deps if everything builds fine.

Fixed by #60