Hello, I am currently getting a SyntaxError: Unexpected token when trying to import constants from .js files
I am doing exactly how it was teached (the Task90 also had this), but when it runs, there's the error.
When I submit task, it marks as done with no errors.
What's wrong? This is my terminal:
import { API_URL, MAX_THREADS } from './config/constants.js';
_______^
SyntaxError: Unexpected token {
at Module.compile (internal/modules/cjs/loader.js:749:23)
at Object.Module.extensions..js (internal/modules/cjs/loader.js:816:10)
at Module.load (internal/modules/cjs/loader.js:672:32)
at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
at Function.Module._load (internal/modules/cjs/loader.js:604:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:868:12)
at internal/main/run_main_module.js:21:11
(Edit: the arrow points to the open bracket "{" character)