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

Cannot read properties of undefined (reading 'rimraf') #1

Closed
kauaicreative opened this issue Feb 13, 2022 · 5 comments
Closed

Cannot read properties of undefined (reading 'rimraf') #1

kauaicreative opened this issue Feb 13, 2022 · 5 comments

Comments

@kauaicreative
Copy link

Getting the error, Cannot read properties of undefined (reading 'rimraf') with latest

I have made sure that rimraf is installed both globally and locally. For some reason utils is undefined async adapt({ utils }) {

> Using @sveltejs/adapter-wordpress-shortcode
> Cannot read properties of undefined (reading 'rimraf')
    at adapt (file:///Users/sun/www/flowsciences/app/public/wp-content/plugins/flow-builder/app/node_modules/sveltekit-adapter-wordpress-shortcode/index.js:18:19)
    at adapt (file:///Users/sun/www/flowsciences/app/public/wp-content/plugins/flow-builder/app/node_modules/@sveltejs/kit/dist/chunks/index5.js:873:8)
    at file:///Users/sun/www/flowsciences/app/public/wp-content/plugins/flow-builder/app/node_modules/@sveltejs/kit/dist/cli.js:1062:11
@kauaicreative
Copy link
Author

Changing async adapt({ utils }) to async adapt(utils) gives access to rimraf but other functions are still missing. I assume this adaptor needs to be updated to the latest version of sveltekit.

Also, wondering if this adaptor has this functionality on the roadmap sveltejs/kit#3882

Thanks!

@tomatrow
Copy link
Owner

tomatrow commented Feb 14, 2022

@kauaicreative I do indeed need to update for the latest version of svelte-kit. I think we could configure esbuild/vite options to output a singular file, maybe even embed css in js too. I'll need to take a look at it.

@kauaicreative
Copy link
Author

Thanks @tomatrow I'll keep an eye on this.

@tomatrow
Copy link
Owner

Well, it's updated for the latest kit version. It seems that Rich pushed a single-file output mode to post 1.0.

@tomatrow
Copy link
Owner

Closing since the original issue is resolved

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

2 participants