Publish to gitHub

*What are you trying to do?

Built an app in plasmic studio , and connected in to gitHub an published using the codeGen and as a reactjs project. Cloned the app locally, ran npm install , and npm run dev, like below-
npm run dev

tmp-cpa@0.0.0 dev
vite

Port 5173 is in use, trying another one…

VITE v7.1.3 ready in 662 ms

➜ Local: http://localhost:5174/
➜ Network: use --host to expose
➜ press h + enter to show help

When i open this in browser , i don’t see the pages that i built . I see an error in the console,

Uncaught SyntaxError: The requested module ‘/node_modules/.vite/deps/@plasmicapp_react-web.js?v=944ce796’ does not provide an export named ‘Flex’ (at PlasmicHomepage.tsx:17:3)Understand this error

If i remove flex , the next import is throwing an error…

This happens because these are type exports.
Can you set verbatimModuleSyntax to false in you tsconfig.json and try again?

I did like below

still getting same error..

studio project - Plasmic

published link - https://github.com/bharath3719/firstPlasmicApp

I see in Github repo tsconfig.app.json, verbatimModuleSyntax is set to true

Oh thank you , i was adding it in tsconfig.json.. Its working now.