Open dallman2 opened 15 hours ago
line 16 of Endpoints.ts
, which is:
const { appId } = getMeteorRuntimeConfig();
seems to be the only place that is using the offending import from Helpers
. if this is the issue, can this value be parametrized in another way?
Huh, that's interesting. Meteor shouldn't have an issue with an import string like that. In fact, there's several other places where it's used. And I don't believe we've changed anything there recently. 😂
You're seeing this in your server logs right, not the browser?
We did however move the package's source files into an src
subdirectory with a recent update. Which has impacted only React out of all the other example apps. Because of the new directory structure, the import path for getConfig
, referenced in the React example app's react-refresh.js
module would cause a similar exception. All with an arguably less than useful error message.
import { getConfig } from 'meteor/jorgenvatle:vite-bundler/loading/vite-connection-handler';
Updating the import path
import { getConfig } from 'meteor/jorgenvatle:vite-bundler/src/loading/vite-connection-handler';
And the problem goes away, all of a sudden the package exists again 😂
Hey Jorgen,
I am using
meteor-vite
in a React codebase, with Meteor 3.0.4. Recently, I have been having trouble actually getting my dev server to launch, with the following error:I tracked it down (i think). The import chain is as follows:
client.ts -> loading/vite-connection-handler -> api/Endpoints -> utility/Helpers -> workers -> node:child_process
If i understand this correctly, this import chain is causing the client to attempt to import a Node package, which obviously does not work. Is this a bug??