Skip to content

Failing to resolve solid-js/web #5420

@murilobd

Description

@murilobd

Which project does this relate to?

Router

Describe the bug

I cannot build my project anymore after version 1.132.51 as I'm receiving the following error:

error during build:
[vite]: Rollup failed to resolve import "solid-js/web" from ".../node_modules/@tanstack/router-devtools-core/dist/index-BiZF0hsR.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to

I'm not sure if this is because you moved solid-js from dependencies to devDependencies, but it doesn't make sense for me to install solid-js in my project.

Your Example Website or App

https://github.com/TanStack/router/releases/tag/v1.132.51

Steps to Reproduce the Bug or Issue

  1. Update @tanstack/react-router-devtools to v1.132.51 and build a project with vite
  2. It will output an error message like
error during build:
[vite]: Rollup failed to resolve import "solid-js/web" from ".../node_modules/@tanstack/router-devtools-core/dist/index-BiZF0hsR.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

Expected behavior

As a user I expect not to have to install solid-js library to use tanstack router devtools

Screenshots or Videos

No response

Platform

  • Router: 1.132.51
  • OS: macOS
  • Bundler: vite
  • Bundler Version: 7.1.9

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions