deleted deleted

deleted deleted   •   almost 2 years ago

Why I am getting this error while using the default example?

Hi there!

I wanted to know if someone else knows about this error below when I run the server, considering this is the default example that is comming canva-apps-sdk-starter-kit/ and I have not done code change?

ERROR in ./src/app.tsx
[tsl] ERROR
TS5069: Option 'declarationMap' cannot be specified without specifying option 'declaration' or option 'composite'.
ts-loader-default_8c1ff2f85f3e5f59
@ ./src/index.tsx 4:0-28 8:53-56 12:31-37 12:4-38

ERROR in ./src/index.tsx
[tsl] ERROR
TS5069: Option 'declarationMap' cannot be specified without specifying option 'declaration' or option 'composite'.
ts-loader-default_8c1ff2f85f3e5f59

webpack 5.90.3 compiled with 2 errors in 4597 ms

Thank you for your answer

  • 2 comments

  • Manager   •   almost 2 years ago

    Hi there,
    I will pass this question along to the Canva team, but I highly recommend posting it in the Canva Developers Community in addition to here for a faster response.

    Good luck!

  • Manager   •   almost 2 years ago

    Hi there,

    From Canva Developers: "This seems to be an issue that’s come up with a new version of TypeScript. We’ll be updating the starter kit with a fix soon.
    In the meantime, setting composite, declaration and declarationMap in the tsconfig.json file to false should allow your app to run correctly."

    Good luck!

Comments are closed.