import statement for CareerSection is getting deleted by itself when you're trying to save
Answered
Giant panda posted this in #help-forum
Giant pandaOP
Hello , i was trying to put
import CareerSection from '@/components/templates/CareerSection';
or
import CareerSection from '../components/templates/CareerSection';
After saving it , it just deleted itself.
import CareerSection from '@/components/templates/CareerSection';
or
import CareerSection from '../components/templates/CareerSection';
After saving it , it just deleted itself.
Answered by Giant panda
I fixed it myself by editing eslint file that causing autosave issue.
3 Replies
IIRC it's eslint issue, which removes unused imports. Use the imported component somewhere before saving the file, you should be fine.
or maybe you are using some vscode extension, cause last I checked eslint doesn't have this rule built-in. either an eslint package, or vscode extension.
or maybe you are using some vscode extension, cause last I checked eslint doesn't have this rule built-in. either an eslint package, or vscode extension.
Giant pandaOP
Be specific please
Giant pandaOP
I fixed it myself by editing eslint file that causing autosave issue.
Answer