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

评论操作 固定链接

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

请先登录再写评论。