meteor / meteor

Meteor, the JavaScript App Platform

Home Page:https://meteor.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3.0-beta.6 > Create VueJs App > Cannot find module 'fibers'

firewater opened this issue · comments

Summary:

I am eager to use Meteor 3.0 so I figured I would test the latest beta version by creating a VueJs app.

meteor run returns:

While loading plugin `vite` from package `jorgenvatle:vite-bundler`:
packages/modules-runtime.js:222:12: Cannot find module 'fibers'

Commands to Reproduce Error:


- npm install -g meteor@3.0.0-beta.6
- meteor create --vue MyApp --release 3.0-beta.6

Meteor Version:

npm list -g --depth=0
/home/vscode/.nvm/versions/node/v20.11.1/lib
├── corepack@0.23.0
├── meteor@3.0.0-beta.6
└── npm@10.2.4

Environment:

  • Host OS: Ubuntu 22.04.4 LTS
  • Container: Docker version 25.0.4, build 1a576c5 (Rootless mode)

Full Error Message:

The following error message is returned in the console and at http://localhost:3000/:

meteor run
[[[[[ ~/My/Project/Directory ]]]]]

=> Started proxy.                             
=> Started HMR server.                        
=> Errors prevented startup:                  
   
   While loading plugin `vite` from package `jorgenvatle:vite-bundler`:
   packages/modules-runtime.js:222:12: Cannot find module 'fibers'
   at makeMissingError (packages/modules-runtime.js:222:12)
   at Module.require (packages/modules-runtime.js:241:17)
   at require (packages/modules-runtime.js:258:21)
   at module (packages/promise.js:41:7)
   at fileEvaluate (packages/modules-runtime.js:336:7)
   at Module.require (packages/modules-runtime.js:238:14)
   at require (packages/modules-runtime.js:258:21)
   at packages/promise.js:149:15
   at packages/promise.js:156:3

Really looking forward to the 3.0 release. Keep up the great work!

@Grubba27 isn't the vue skeleton Vue 2?

Since this PR in Meteor v2.9, Vue 3 is called by --vue command.

Thinking about it, this was a breaking change.

From my tests, vue 3 actually works with Meteor v3!

After you create your app, you should run the following:

meteor remove jorgenvatle:vite-bundler  

meteor add jorgenvatle:vite-bundler@2.0.0-beta.8

Meteor, for some reason, gets lost while choosing dependencies while creating a beta app for the 3.x version.
Screenshot 2024-03-11 at 09 41 20

@Grubba27 @StorytellerCZ Thank you for the quick reply! Just letting you know that my app is now working thanks to the recommendation provided above. Hopefully this is an easy fix for the devs to implement in the upcoming official 3.0 release.

Yes! I think pinning this version should do the trick

jorgenvatle:vite-bundler@2.0.0-beta.8