Cannot build .NET project after installing Canvas

3 replies · opened Oct 4, 2021

WwalkinwillieOct 4, 2021

Using VS2019, I added the HTML folder and all its contents to my newly created project. I attempted to rebuild the project and this is the error I received.

Error Build:Cannot find name 'PromiseConstructor'.C:<root folder>&lt;project>\HTML\js\components\tinymce\tinymce.d.ts Line: 2877

Frustrating when you cannot build right out of the box.

WwalkinwillieOct 4, 2021

I added a file to the HTML/js/tinymce folder called tsconfig.json with the following content:

{
"compilerOptions": { "lib": [ "es2015", "dom" ] },
"exclude": [ "/bin", "/bower_components", "/jspm_packages", "/node_modules", "/obj", "/platforms" ]
}

It allows me to run the project but still get the error above along with some other errors. These errors are:

  1. Error TS2304 (TS) Cannot find name 'ArrayLike'. Miscellaneous C:\Program Files (x86)\Microsoft SDKs\TypeScript\4.3\lib.es2015.iterable.d.ts 83 Active

  2. Error TS2304 (TS) Cannot find name 'ArrayLike'. Miscellaneous C:\Program Files (x86)\Microsoft SDKs\TypeScript\4.3\lib.es2015.iterable.d.ts 91 Active

  3. Error TS2304 (TS) Cannot find name 'PromiseLike'. Miscellaneous C:\Program Files (x86)\Microsoft SDKs\TypeScript\4.3\lib.es2015.iterable.d.ts 226 Active

  4. Error TS2304 (TS) Cannot find name 'PromiseLike'. Miscellaneous C:\Program Files (x86)\Microsoft SDKs\TypeScript\4.3\lib.es2015.iterable.d.ts 234 Active

  5. Error TS2304 (TS) Cannot find name 'PromiseLike'. Miscellaneous C:\Program Files (x86)\Microsoft SDKs\TypeScript\4.3\lib.es2015.iterable.d.ts 242 Active

Any help on getting these errors cleaned up would be very much appreciated.

Thanks, William

WwalkinwillieOct 4, 2021

OK, closed and reopened VS, cleaned the solution and built the solution and the errors are no longer there. However the original error would still be there if not for the tsconfig.json file so you may want to consider revising your repository to include that file.

SSemicolon WebSTAFFOct 5, 2021

Hello,

Apologies for the Inconveniences caused!

Canvas is not compatible with Build Tools out of the box and the entire TinyMCE package is provided as-is with the Package which includes the tinymce.d.ts File. We will definitely check what is causing this and remove this File from the package if not necessary in the next update. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard