When I am trying to use Form dev tool with Start on Cloudflare Workers,
I am getting this error:
✘ [ERROR] No matching export in "node_modules/solid-js/web/dist/server.js" for import "use" node_modules/@tanstack/devtools-utils/dist/solid/esm/dev.js:1:44: 1 │ import { createComponent, template, insert, use } from 'solid-js/web'; ╵ ~~~4:17:01 PM [vite] (ssr) error while updating dependencies:Error: Error during dependency optimization:✘ [ERROR] No matching export in "node_modules/solid-js/web/dist/server.js" for import "use" node_modules/@tanstack/devtools-utils/dist/solid/esm/dev.js:1:44: 1 │ import { createComponent, template, insert, use } from 'solid-js/web'; ╵ ~~~
✘ [ERROR] No matching export in "node_modules/solid-js/web/dist/server.js" for import "use" node_modules/@tanstack/devtools-utils/dist/solid/esm/dev.js:1:44: 1 │ import { createComponent, template, insert, use } from 'solid-js/web'; ╵ ~~~4:17:01 PM [vite] (ssr) error while updating dependencies:Error: Error during dependency optimization:✘ [ERROR] No matching export in "node_modules/solid-js/web/dist/server.js" for import "use" node_modules/@tanstack/devtools-utils/dist/solid/esm/dev.js:1:44: 1 │ import { createComponent, template, insert, use } from 'solid-js/web'; ╵ ~~~
Another one is
Error: The file does not exist at "/Users/user/codes/test/node_modules/.vite/deps_ssr/@tanstack_react-form-devtools.js?v=e2df7cbe" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`. at CustomModuleRunner.cachedModule (workers/runner-worker.js:1196:20) ... 8 lines matching cause stack trace ... at CustomModuleRunner.cachedRequest (workers/runner-worker.js:1084:73) { cause: Error: The file does not exist at "/Users/sithu/codes/quizform/node_modules/.vite/deps_ssr/@tanstack_react-form-devtools.js?v=e2df7cbe" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`.
Error: The file does not exist at "/Users/user/codes/test/node_modules/.vite/deps_ssr/@tanstack_react-form-devtools.js?v=e2df7cbe" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`. at CustomModuleRunner.cachedModule (workers/runner-worker.js:1196:20) ... 8 lines matching cause stack trace ... at CustomModuleRunner.cachedRequest (workers/runner-worker.js:1084:73) { cause: Error: The file does not exist at "/Users/sithu/codes/quizform/node_modules/.vite/deps_ssr/@tanstack_react-form-devtools.js?v=e2df7cbe" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`.
I tried to add
@tanstack_react-form-devtools
@tanstack_react-form-devtools
to
vite.config.ts
vite.config.ts
, but still getting that same error.
When I comment the form dev tool, it is gone. Any solution?