Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: not resolving references-runtime.js from server-functions package #9

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

edivados
Copy link
Contributor

Running example-bare from solid-start on Windows fails to resolve references-runtime.js.

[plugin:vite:import-analysis] Failed to resolve import "C:UsersDavideDesktopsolid-start
ode_modules.pnpm@vinxi+plugin-server-functions@0.0.32_vinxi@0.0.40
ode_modules@vinxiplugin-server-functions
eferences-runtime.js" from "src\entry-client.tsx". Does the file exist?
C:/Users/Davide/Desktop/solid-start/examples/bare/src/entry-client.tsx:1:38
1  |  import { createComponent as _$createComponent } from "solid-js/web";
2  |  import { createServerReference } from 'C:\Users\Davide\Desktop\solid-start\node_modules\.pnpm\@vinxi+plugin-server-functions@0.0.32_vinxi@0.0.40\node_modules\@vinxi\plugin-server-functions\references-runtime.js';
   |                                         ^
3  |  import { mount, StartClient } from "@solidjs/start/client";
4  |  const hello = createServerReference(() => {}, "C:/Users/Davide/Desktop/solid-start/examples/bare/src/entry-client.tsx?split=0", "default");
    at formatError (file:///C:/Users/Davide/Desktop/solid-start/node_modules/.pnpm/vite@5.0.0-beta.7/node_modules/vite/dist/node/chunks/dep-7af400e9.js:44694:46)
    at TransformContext.error (file:///C:/Users/Davide/Desktop/solid-start/node_modules/.pnpm/vite@5.0.0-beta.7/node_modules/vite/dist/node/chunks/dep-7af400e9.js:44688:19)
    at normalizeUrl (file:///C:/Users/Davide/Desktop/solid-start/node_modules/.pnpm/vite@5.0.0-beta.7/node_modules/vite/dist/node/chunks/dep-7af400e9.js:42423:33)
    at async file:///C:/Users/Davide/Desktop/solid-start/node_modules/.pnpm/vite@5.0.0-beta.7/node_modules/vite/dist/node/chunks/dep-7af400e9.js:42572:47
    at async Promise.all (index 1)
    at async TransformContext.transform (file:///C:/Users/Davide/Desktop/solid-start/node_modules/.pnpm/vite@5.0.0-beta.7/node_modules/vite/dist/node/chunks/dep-7af400e9.js:42493:13)
    at async Object.transform (file:///C:/Users/Davide/Desktop/solid-start/node_modules/.pnpm/vite@5.0.0-beta.7/node_modules/vite/dist/node/chunks/dep-7af400e9.js:44996:30)
    at async loadAndTransform (file:///C:/Users/Davide/Desktop/solid-start/node_modules/.pnpm/vite@5.0.0-beta.7/node_modules/vite/dist/node/chunks/dep-7af400e9.js:55818:29)
    at async viteTransformMiddleware (file:///C:/Users/Davide/Desktop/solid-start/node_modules/.pnpm/vite@5.0.0-

@codesandbox
Copy link

codesandbox bot commented Oct 28, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@nksaraf nksaraf merged commit 3014bf3 into nksaraf:main Oct 31, 2023
1 of 2 checks passed
@edivados edivados deleted the server-fn-win branch October 31, 2023 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants