import statement for CareerSection is getting deleted by itself when you're trying to save
Answered
RxvxntxN posted this in #help-forum
RxvxntxNOP
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 RxvxntxN
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.
RxvxntxNOP
Be specific please
RxvxntxNOP
I fixed it myself by editing eslint file that causing autosave issue.
Answer