I deleted a global screen variant I accidentally added in plasmic studio, and now can’t get anywhere. I can’t publish a site I was due to finish today.
Is there a way to safely delete components without this happening? Codegen is turning into a major headache
Module not found: Can't resolve '../components/plasmic/maerifa_solutions/PlasmicGlobalVariant__UnnamedGlobalGroupOfVariants'
5 | import GlobalContextsProvider from "../components/plasmic/maerifa_solutions/PlasmicGlobalContextsProvider";
6 | import { ScreenVariantProvider } from "../components/plasmic/maerifa_solutions/PlasmicGlobalVariant__Screen";
> 7 | import { UnnamedGlobalGroupOfVariantsContext } from "../components/plasmic/maerifa_solutions/PlasmicGlobalVariant__UnnamedGlobalGroupOfVariants";
| ^
8 | import { PlasmicHomepage } from "../components/plasmic/maerifa_solutions/PlasmicHomepage";
9 | import { useRouter } from "next/router";
10 |
Sorted the initial by the context wrapper from the file, but now I’m getting this:
Skipping linting
Checking validity of types .Failed to compile.
./pages/backup.tsx:6:10
Type error: Module '"../components/plasmic/maerifa_solutions/PlasmicGlobalVariant__Screen"' has no exported member 'ScreenVariantProvider'. Did you mean to use 'import ScreenVariantProvider from "../components/plasmic/maerifa_solutions/PlasmicGlobalVariant__Screen"' instead?
4 | import { PageParamsProvider as PageParamsProvider__ } from "@plasmicapp/react-web/lib/host";
5 | import GlobalContextsProvider from "../components/plasmic/maerifa_solutions/PlasmicGlobalContextsProvider";
> 6 | import { ScreenVariantProvider } from "../components/plasmic/maerifa_solutions/PlasmicGlobalVariant__Screen";
| ^
7 | import { PlasmicHomepage } from "../components/plasmic/maerifa_solutions/PlasmicHomepage";
8 | import { useRouter } from "next/router";
9 |
Checking validity of types ..