Uncaught SyntaxError: Unexpected Identifier | Trying To Import A Module But I Get This Error
I am currently learning how to make a javascript game. I am using the video: https://www.youtube.com/watch?v=3EMxBkqC4z0&t=319s When I try to import the paddle.js file, the co
Solution 1:
Check the files URL, are both files in the same level?
If you are editing your code, try clear the browser cache..
Solution 2:
If you are sure that all of these files are at the root of the current working directory try to import paddle.js as follows.
import Paddle from '/paddle';
or else import Paddle from '/put the path to paddle.js file here/paddle';
Post a Comment for "Uncaught SyntaxError: Unexpected Identifier | Trying To Import A Module But I Get This Error"