Build errors using codegen

Hi, I’m getting errors trying to build for a deploy when using codegen with plasmic. :thread:

Bundling plasmicui...
(node:5830) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /workspace/testedweb/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
Error during bundle: Error: /workspace/testedweb/libs/plasmicui/src/plasmic/tested_web/PlasmicAwardInnerPage.tsx(230,16): semantic error TS4033: Property 'dataFetches' of exported interface has or is using private name 'PlasmicAwardInnerPage__Fetches'.
Error during bundle: Error: /workspace/testedweb/libs/plasmicui/src/plasmic/tested_web/PlasmicAwardInnerPage.tsx(230,16): semantic error TS4033: Property 'dataFetches' of exported interface has or is using private name 'PlasmicAwardInnerPage__Fetches'.
Bundle failed: plasmicui

The component throwing the error runs fine when doing yarn start (aka serve dev version) but building for prod gives those errors.

This actually happens for every component exported from codegen

Thanks! We’ve identified the issue. You are probably building with declaration:true in your tsconfig? We will be fixing this in the generated code, but you can also unblock yourself for now by not setting that flag, if you don’t need it

My tsconfig is actually "declaration": false,

Could you try again?

Bundling plasmicui...
(node:10492) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /workspace/testedweb/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
Error during bundle: Error: /workspace/testedweb/libs/plasmicui/src/plasmic/tested_web/PlasmicButton.tsx(101,19): semantic error TS4033: Property 'link' of exported interface has or is using private name 'PageHref'.
Error during bundle: Error: /workspace/testedweb/libs/plasmicui/src/plasmic/tested_web/PlasmicButton.tsx(101,19): semantic error TS4033: Property 'link' of exported interface has or is using private name 'PageHref'.
Bundle failed: plasmicui

Ran plasmic sync before I got this

All the components have this same error.

Deploying a fix soon…

(forgot to say, please try again :sweat_smile: )

It works now!

Thank you so much!