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

meteor vite svelte5 endlessly "I20250114-20:22:00.892(0)? ⚡ Refreshing configuration from Vite dev server... " #277

Open
thomastraum opened this issue Jan 14, 2025 · 1 comment

Comments

@thomastraum
Copy link

Hey I am trying to setup a nice starter setup with meteor svelte5 meteor-vite and shad-cn.

I am coding away and then sometimes the whole project breaks and its endlessly refreshing and I just have to give up.

=> Linted your app. No linting errors.        
I20250114-20:21:43.251(0)? ⚡   Starting Vite server...
=> Started your app.

=> App running at: http://localhost:3000/
I20250114-20:21:43.398(0)? ⚡  Spawned new Meteor-Vite worker process
I20250114-20:21:55.902(0)? ⚡   Refreshing configuration from Vite dev server...
I20250114-20:21:57.892(0)? ⚡   Refreshing configuration from Vite dev server...
I20250114-20:22:00.892(0)? ⚡   Refreshing configuration from Vite dev server...
I20250114-20:22:02.891(0)? ⚡   Refreshing configuration from Vite dev server...
I20250114-20:22:05.895(0)? ⚡   Refreshing configuration from Vite dev server...
I20250114-20:22:07.907(0)? ⚡   Refreshing configuration from Vite dev server...

I think my packages are not the right versions maybe? Its quite cobbled together but I am really excited about it.

Also I am seeing this error which I cant manage to make to go away


[[[[[ ~/code/web/meteor-svelte-vite-starter ]]]]]

=> Started proxy.                             
=> Started HMR server.                        
=> Started MongoDB.                           
                                              
Unable to resolve some modules:

  "esm-env/browser" in /home/tommi/code/web/meteor-svelte-vite-starter/node_modules/esm-env/index.js (web.browser)
  "esm-env/development" in /home/tommi/code/web/meteor-svelte-vite-starter/node_modules/esm-env/index.js (web.browser)
  "esm-env/node" in /home/tommi/code/web/meteor-svelte-vite-starter/node_modules/esm-env/index.js (web.browser)
                                              
If you notice problems related to these missing modules, consider running:
                                              
  meteor npm install --save esm-env           
                                         

of course I tried meteor npm install --save esm-env but it didnt make a difference


{
  "name": "meteor-svelte-vite-starter",
  "description": "A starter template for Meteor.js with Svelte, Vite, and TailwindCSS",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "meteor --exclude-archs 'web.browser.legacy, web.cordova' --settings settings.json",
    "test": "meteor test --once --driver-package meteortesting:mocha",
    "test-app": "TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha",
    "visualize": "meteor --production --extra-packages bundle-visualizer",
    "lint": "eslint . --ext .js,.svelte",
    "lint:fix": "eslint . --ext .js,.svelte --fix",
    "format": "prettier --write \"**/*.{js,svelte,json,md}\"",
    "format:check": "prettier --check \"**/*.{js,svelte,json,md}\"",
    "check": "npm run lint && npm run format:check"
  },
  "dependencies": {
    "@babel/runtime": "^7.23.5",
    "@tailwindcss/aspect-ratio": "^0.4.2",
    "@tailwindcss/container-queries": "^0.1.1",
    "@tailwindcss/forms": "^0.5.9",
    "@tailwindcss/typography": "^0.5.15",
    "autoprefixer": "^10.4.19",
    "date-fns": "^4.1.0",
    "esm-env": "^1.2.2",
    "express": "^4.19.2",
    "meteor-node-stubs": "^1.2.7",
    "mode-watcher": "^0.5.0",
    "postcss": "^8.4.40",
    "tailwindcss": "^3.4.7"
  },
  "devDependencies": {
    "@babel/core": "^7.26.0",
    "@babel/eslint-parser": "^7.26.5",
    "@babel/plugin-syntax-import-assertions": "^7.26.0",
    "@meteorjs/eslint-config-meteor": "^1.0.5",
    "@sveltejs/vite-plugin-svelte": "^4.0.0",
    "@tsconfig/svelte": "^5.0.0",
    "autoprefixer": "^10.4.20",
    "bits-ui": "^1.0.0-next.72",
    "clsx": "^2.1.1",
    "eslint": "^8.57.1",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-meteor": "^7.3.0",
    "eslint-plugin-svelte": "^2.46.0",
    "lucide-svelte": "^0.468.0",
    "meteor-vite": "^1.12.0",
    "svelte": "^5.1.9",
    "svelte-check": "^3.4.6",
    "svelte-preprocess": "^5.0.4",
    "svelte5-router": "^3.0.1",
    "tailwind-merge": "^2.5.5",
    "tailwind-variants": "^0.3.0",
    "tailwindcss": "^3.4.9",
    "tailwindcss-animate": "^1.0.7",
    "vite": "^5.4.10"
  },
  "meteor": {
    "mainModule": {
      "client": "client/main.js",
      "server": "server/main.js"
    }
  }
}

the WIP repo of the whole thing is here:
https://github.com/thomastraum/meteor-svelte-vite-starter

I am not very pro with this, so there might be a lot of things misconfigured.

@thomastraum
Copy link
Author

oh just found your responses in #247

ok I am not seeing the refresh bug anymore but I still see


Unable to resolve some modules:

  "esm-env/browser" in /home/tommi/code/web/meteor-svelte-vite-starter/node_modules/esm-env/index.js (web.browser)
  "esm-env/development" in /home/tommi/code/web/meteor-svelte-vite-starter/node_modules/esm-env/index.js (web.browser)
  "esm-env/node" in /home/tommi/code/web/meteor-svelte-vite-starter/node_modules/esm-env/index.js (web.browser)

If you notice problems related to these missing modules, consider running:

  meteor npm install --save esm-env

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

No branches or pull requests

1 participant