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

Documentation incorrectly specifies all options as optional #854

Closed
frederikhors opened this issue Apr 3, 2021 · 1 comment
Closed

Documentation incorrectly specifies all options as optional #854

frederikhors opened this issue Apr 3, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@frederikhors
Copy link
Contributor

Describe the bug
Commenting out adapter: prop in svelte.config.cjs throws error:

> Using undefined
> adapt is not a function
TypeError: adapt is not a function
    at adapt (file:///C:/kit/node_modules/@sveltejs/kit/dist/chunks/index6.js:768:8)
    at file:///C:/kit/node_modules/@sveltejs/kit/dist/cli.js:633:11

Expected behavior
I read https://kit.svelte.dev/docs#configuration:

All values are optional.

Information about your SvelteKit Installation:

Diagnostics
  • The output of npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers:

System:
OS: Windows 10 10.0.19042
Binaries:
Node: 14.16.0 - C:\Program Files\nodejs\node.EXE
npm: 7.8.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@sveltejs/kit: 1.0.0-next.70 => 1.0.0-next.70
svelte: 3.37.0 => 3.37.0
vite: 2.1.5 => 2.1.5

  • Your adapter: Nothing

Additional context
I need a way to build my project as if I were using the sveltejs/template seed.

@Conduitry Conduitry added the documentation Improvements or additions to documentation label Apr 3, 2021
@benmccann benmccann changed the title error: adapt is not a function Documentation incorrectly specifies all options as optional Apr 3, 2021
@ignatiusmb
Copy link
Member

All options are indeed optional, you'll need to read more for each of the options, in this case https://kit.svelte.dev/docs#configuration-adapter and https://kit.svelte.dev/docs#adapters.

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

No branches or pull requests

3 participants