Build error: Could not resolve "grid-engine/dist/Direction/Direction"
See original GitHub issueHowdy! I was working on getting all the proper typing passed to various functions, and while I was working on the movement code I tried to use the Direction enum as the parameters for movement. However, when trying to build I got the following error…
> .\node_modules\.bin\esbuild src/Game.ts --bundle --outfile=public/game.js
> src/scenes/MainScene.ts:2:26: error: Could not resolve "grid-engine/dist/Direction/Direction" (mark it as external to exclude it from the bundle)
2 │ import { Direction } from "grid-engine/dist/Direction/Direction";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error
However, I’m 100% certain that the Direction.d.ts
file is precisely where it should be - it was suggested and autofilled by the editor, after all.
Is this an issue you’ve come across? Is there a fix?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
MSBuild error: "Could not resolve this reference. Could not ...
I was able to build my current solution successfully earlier this morning, but the build suddenly started failing ~15 minutes ago, with the ......
Read more >Cannot build image due to domain resolving issue #4990
Background When trying to build the image on Docker build, the domain github.com is not resolved and I obtain an error.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This appears to have been the issue. As of updating to 2.4.0 I no longer have that notice. Thanks, Anno! 😄
Are you using version 2.4.0?