project_professional_portfolio icon indicating copy to clipboard operation
project_professional_portfolio copied to clipboard

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

Open weilin-ong opened this issue 2 years ago • 2 comments

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

weilin-ong avatar Jun 02 '22 16:06 weilin-ong

@weilin93 Have you installed this package?

YasirBajwa avatar Jul 05 '22 07:07 YasirBajwa

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"] }

Blazehashira avatar Nov 23 '23 10:11 Blazehashira