Code coloring

Hello everyone
Problem with Javascript
When I add an  "import {...} from"  instruction at the top of a ".js" file, all the global function names take on the color red.
Why ? Is this an error detected in my code?
Thank you for your reply.
YC

0
1 comment

please could you share screenshots illustrating the issue?

Note that adding import directive turns a file into a module, so only those variables that are explicitly exposed through export will be available outside of this file

0

Please sign in to leave a comment.