vite throws errors when importing types from NetscriptDefinitions.d.ts
Closed this issue · 1 comments
svgPhoenix commented
This works: import { NS } from '@ns';
This: import { JobName, NS } from '@ns';
throws the following error:
12:47:17 AM [viteburner] Error: Failed to resolve import "@ns" from "src\foo.ts". Does the file exist?
svgPhoenix commented
my bad, forgot there are no types in-game