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)
When running
npm run dev
, I get the error:It seems the package
tiny-glob
is referenced by adapter-browser-extension.mjs, but not included inpackage.json
.Running
npm i -D tiny-glob
in my project is a workaround for the issue.