Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerous errors and warnings in the source code #13

Open
eburnette opened this issue Jul 28, 2024 · 1 comment · May be fixed by #17
Open

Numerous errors and warnings in the source code #13

eburnette opened this issue Jul 28, 2024 · 1 comment · May be fixed by #17

Comments

@eburnette
Copy link

Viewing the source in VSCode, I see dozens of errors and warnings. This gets in the way of understanding the example.

Here are two examples:
image

image

Most of them are warnings about implicit 'any' types. It's recommended that they be fixed, but there are so many that you might want to disable them for now. To disable these warnings, you can add "noInplicitAny":false to the tsconfig.json file like this:

{
  "compilerOptions": {
    ... existing options ...
    "noImplicitAny": false
  },
  ...
}

Errors about 'cannot find module' for SVG files can be fixed by creating a declarations.d.ts file in the src directory with this content:

declare module '*.svg' {
  const content: any;
  export default content;
}

That still leaves a dozen or so errors to fix.

image

@ictsmc
Copy link

ictsmc commented Sep 11, 2024

image
I also made some mistakes. Please fix them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants