antony / sveltekit-adapter-browser-extension

Build browser extensions with Svelte (early prototype)
161 stars 19 forks source link

"Cannot read property 'rimraf' of undefined" on npm run build #6

Closed webspaceadam closed 2 years ago

webspaceadam commented 2 years ago

Hey guys!

Thank you for this adapter. I wanted to build my next browser extension with sveltekit because i really felt in love with it and built all my side projects with it in the last couple months.

Unfortunately i get the exception "> Cannot read property 'rimraf' of undefined" when i start "npm run build".

Did i oversee something in the README or is there currently a bug? Would like to help in this project, so maybe someone can give me a hint and i would try to create a pr.

PS: i tried it with your example app and one TS-Based sveltekit project.

Cheers!

webspaceadam commented 2 years ago

Had to rewrite some parts of the solution. When i have a working example i will create a PR :)