LearningTypeScript / projects

Hands-on real world projects that will help you exercise your knowledge of TypeScript.
https://learningtypescript.com/projects
244 stars 166 forks source link

🐛 Bug: [secret-messages/02-allowed-imports] Solution errors in CI: Could not find a declaration file #264

Open JoshuaKGoldberg opened 1 year ago

JoshuaKGoldberg commented 1 year ago

Bug Report Checklist

Expected

npm run test:solutions should pass in all projects, including configuration-options/secret-messages/02-allowed-imports.

Actual

Error: 02-allowed-imports/index.ts(1,20): error TS7016: Could not find a declaration file for module './answer.js'. '/home/runner/work/projects/projects/projects/configuration-options/secret-messages/02-allowed-imports/answer.js' implicitly has an 'any' type.
Error: 02-allowed-imports/index.ts(2,26): error TS2732: Cannot find module './guesses.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
Error: 02-allowed-imports/index.ts(8,33): error TS2532: Object is possibly 'undefined'.

Impacted Project

configuration-options/secret-messages/02-allowed-imports

Additional Info

No response