antony / sveltekit-adapter-browser-extension

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

Cannot find package 'tiny-glob' #21

Closed panasenco closed 1 year ago

panasenco commented 2 years ago

When running npm run dev, I get the error:

Cannot find package 'tiny-glob' imported from /home/a/git/resume-optimizer/node_modules/sveltekit-adapter-browser-extension/adapter-browser-extension.mjs
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'tiny-glob' imported from /home/a/git/resume-optimizer/node_modules/sveltekit-adapter-browser-extension/adapter-browser-extension.mjs
    at new NodeError (node:internal/errors:387:5)
    at packageResolve (node:internal/modules/esm/resolve:951:9)
    at moduleResolve (node:internal/modules/esm/resolve:1000:20)
    at defaultResolve (node:internal/modules/esm/resolve:1214:11)
    at nextResolve (node:internal/modules/esm/loader:165:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:844:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36)

It seems the package tiny-glob is referenced by adapter-browser-extension.mjs, but not included in package.json.

Running npm i -D tiny-glob in my project is a workaround for the issue.