Uncaught SyntaxError: Cannot use import statement outside a module

Hello everyone ,

I have a bug that descripted, that i can’t use import-statement outside the module.

two things that i apply.
(1) in the index.html => type=“module”
(2) in package.json => “type”: “module”,

I also used node.js version 18

But, still the error is exists.
Have any one an idea , what is the soultion?