Challenge - 5 Problems
Svelte Project Setup Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding the create-svelte command
What does the command
npm create svelte@latest do when setting up a new Svelte project?Attempts:
2 left
💡 Hint
Think about what 'create' commands usually do in project setups.
✗ Incorrect
The
npm create svelte@latest command downloads the latest Svelte project template and helps you configure your new project interactively.❓ component_behavior
intermediate2:00remaining
Result of skipping TypeScript during setup
If you run
npm create svelte@latest and choose no when asked about TypeScript support, what will be true about your project?Attempts:
2 left
💡 Hint
Consider what happens when you decline TypeScript in a setup wizard.
✗ Incorrect
Choosing no TypeScript means the project uses plain JavaScript files and no TypeScript tooling is included.
📝 Syntax
advanced2:00remaining
Correct command to create a Svelte project with npm
Which of the following commands correctly creates a new Svelte project using the latest create-svelte template?
Attempts:
2 left
💡 Hint
Focus on the official recommended command syntax for create-svelte.
✗ Incorrect
The correct command is
npm create svelte@latest my-app to create a new project folder named my-app.🔧 Debug
advanced2:00remaining
Error caused by missing dependencies after create-svelte
After running
npm create svelte@latest and choosing options, you try to run npm run dev but get an error about missing modules. What is the most likely cause?Attempts:
2 left
💡 Hint
Think about what step installs packages after project creation.
✗ Incorrect
After creating the project, you must run
npm install to download all needed packages before running the dev server.❓ state_output
expert2:00remaining
Number of files created by default with create-svelte
After running
npm create svelte@latest and accepting all default options, how many files (not folders) are created in the root of the new project folder?Attempts:
2 left
💡 Hint
Count files like
package.json, README.md, config files, and main source files.✗ Incorrect
By default (with TypeScript, ESLint, Prettier), the root folder contains 9 files:
.eslintrc.cjs, .gitignore, .prettierrc, README.md, package.json, svelte.config.js, tsconfig.json, tsconfig.node.json, vite.config.ts.