adrianhajdin / project_professional_portfolio

This is a code repository for the corresponding YouTube video. In this tutorial we are going to build and deploy a real time chat application. Covered topics: React.js, SCSS, Framer Motion, Sanity
https://jsmastery.pro
2.07k stars 496 forks source link

Parsing error: Cannot find module '@babel/preset-env' #22

Open weilin-ong opened 2 years ago

weilin-ong commented 2 years ago

Issue: Although sanity compiled successfully and is able to run on browser, I'm getting this error while setting up Schemas for Sanity. Should I be worried?

What I've tried: installed @babel/preset-env package

Screenshot 2022-06-03 at 00 18 05

YasirBajwa commented 2 years ago

@weilin93 Have you installed this package?

Blazehashira commented 1 year ago

To solve this problem, add the code below to the ".eslintrc" file in the backend sanity folder. That should take away the warnings.

.eslintrc: { "extends": "@sanity/eslint-config-studio", "eslint.workingDirectories": ["./web", "./studio"] }