Tanimodori/viteburner-template

vite throws errors when importing types from NetscriptDefinitions.d.ts

Closed this issue · 1 comments

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?

my bad, forgot there are no types in-game