OASIS-learn-study / minecraft-storeys-maker

Minecraft extension to make your own stories in, with and for Minecraft - it's like being a movie director!
https://www.learn.study
GNU Affero General Public License v3.0
14 stars 10 forks source link

added type information on the monaco editor #403

Closed edewit closed 1 year ago

edewit commented 2 years ago
vorburger commented 2 years ago

@edewit whoa! This looks really cool. There is a build failure though:

> tsc && vite build

src/monaco/CodeEditor.tsx(5,23): error TS2307: Cannot find module '../blockly/storeys/storeys.d.ts?raw' or its corresponding type declarations.

> Task :blockly:npmBuildProd FAILED

Contrary to #402 this one looks more like a real issue? (BTW whenever you get to fixing this you can merge #404 and then rebase this PR, just to avoid that timeout problem.)

edewit commented 2 years ago

it's not a real issue typescript doesn't know that vite can do raw imports fixed by adding // @ts-ignore