"Uncaught TypeError: Failed to resolve module specifier "phaser-ce". Relative references must start with either "/", "./", or "../"."


#1

I was working on my code related to scene/gameplay. Everything was working before then, and suddenly this seemingly-unrelated error pops up when I’ve refreshed the website.

(index):1 Uncaught TypeError: Failed to resolve module specifier "phaser-ce". Relative references must start with either "/", "./", or "../".

I uncommented all the changes I’ve made, still nothing seem work…
html tag has a bug in it?

I searched around the Internet with no luck…

It would be awesome if someone gives me insight on how to solve this problem. Whelp!


#2

Resolved!

For some reason, visual studio code auto-added a line of import…

import { Rectangle } from “phaser-ce”; when I was considering adding a new functionality.

Better watch out for auto-added import line next time…


#3

I was just writing answer and you solved it. Great. :sweat_smile:

You can mark your question as solved by your answer.


#4

Thanks for contributing :slight_smile: