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

Compiler errors in Context step #54

Open
eudaimyst opened this issue Dec 5, 2023 · 0 comments
Open

Compiler errors in Context step #54

eudaimyst opened this issue Dec 5, 2023 · 0 comments

Comments

@eudaimyst
Copy link

eudaimyst commented Dec 5, 2023

Bug Description
tsconfig.json requires editing for Context step to not throw compiler errors.

I was just following the tutorial and got to the context step and received the following errors

ERROR in C:\dev\pixi\pixi-hotwire\src\index.ts
./src/index.ts 69:12-18
[tsl] ERROR in C:\dev\pixi\pixi-hotwire\src\index.ts(69,13)
TS6133: 'myName' is declared but its value is never read.

ERROR in C:\dev\pixi\pixi-hotwire\src\index.ts
./src/index.ts 70:11-17
[tsl] ERROR in C:\dev\pixi\pixi-hotwire\src\index.ts(70,12)
TS2564: Property 'method' has no initializer and is not definitely assigned in the constructor.

To get it to compile and return the expected console output I had to set
"strict" and "noUnusedLocals" to false in tsconfig.json.

Apologies if I missed a step.

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

No branches or pull requests

1 participant