question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

builder.rimraf is not a function

See original GitHub issue

Describe the bug

I upgraded from .22 to .24 and got this regression:

> Using @sveltejs/adapter-static
> builder.rimraf is not a function
TypeError: builder.rimraf is not a function
    at adapt (file:///Users/pavel/projects/test222/node_modules/@sveltejs/adapter-static/index.js:15:12)
    at adapt (file:///Users/pavel/projects/test222/node_modules/@sveltejs/kit/dist/chunks/index4.js:393:8)
    at file:///Users/pavel/projects/test222/node_modules/@sveltejs/kit/dist/cli.js:896:11

I see that there were some changes around that 9 https://github.com/sveltejs/kit/commit/ecb423b54d459be8c0693c723799be4171369afd#diff-f3af5914d90b42d7d1ab55f490a7a72f62616570e6f48e58ae1567f8f845260c ) so i decided to report bug.

Thanks for all your great work 😃

Edit

On second thought im not sure it is static-adapter fault. Im trying my best to make it work again, and even on .22 it does not. Which means it might be something else.

Reproduction

Clone https://github.com/EinLinuus/sveltekit-tailwindcss-template Change adapter to static npm run build

Logs

No response

System Info

System:
    OS: macOS 12.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 76.98 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v14.18.1/bin/yarn
    npm: 8.1.4 - ~/.nvm/versions/node/v14.18.1/bin/npm
  Browsers:
    Chrome: 96.0.4664.110
    Firefox: 95.0.2
    Safari: 15.2
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.3 
    @sveltejs/adapter-static: ^1.0.0-next.24 => 1.0.0-next.24 
    @sveltejs/kit: next => 1.0.0-next.201 
    svelte: ^3.44.0 => 3.44.2

Severity

blocking all usage of SvelteKit

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rawkodecommented, Dec 30, 2021

@Conduitry im on 208 and this error still persists 🙁

Using adapter-vercel

1reaction
Conduitrycommented, Dec 30, 2021

You’re not on the latest version of @sveltejs/kit, which is currently 1.0.0-next.208. There were coordinated breaking changes in Kit and in the adapters which were released at the same time.

I can’t reproduce this on the skeleton app with the latest Kit and adapter-static.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I keep getting builder.rimraf is not a function when i build npm
Using @sveltejs/adapter-netlify > builder.rimraf is not a function. The application itself runs fine with npm run dev.
Read more >
"builder.rimraf is not a function" upon build : r/sveltejs - Reddit
I'm getting the following error when trying to use the node adapter for a production build. > Using @sveltejs/adapter-node > builder.rimraf ...
Read more >
'TypeError: rimraf.sync is not a function' in version 9.0.7 · Issue ...
I have installed the npx globally, then want to try some features, but got the error: 'TypeError: rimraf.sync is not a function'.
Read more >
SOLVED Error at the installation: cannot find module 'rimraf'
Hello there! I have an issue when I paste the command to install MM. It is an 'updated link to install MM' I...
Read more >
rimraf - npm
A deep deletion module for node (like `rm -rf`). Latest version: 3.0.2, last published: 3 years ago. Start using rimraf in your project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found