Open mattsouth opened 6 months ago
On further testing I can see that the reproduction I created above uses a fork of this project: JorgenVatle/meteor-vite (I hadnt spotted the switch of the skeleton to use it) and I can also see that if you run your project using meteor
before running it with METEOR_LOCAL_DIR=.meteor/test meteor
then this project works without errors. But if you havent previously run the app (and thus built it) you see a similar set of errors:
me@mymachine:~/Software/meteor-vue-2.12.0$ METEOR_LOCAL_DIR=.meteor/test meteor
[[[[[ ~/Software/meteor-vue-2.12.0 ]]]]]
=> Started proxy.
=> Started HMR server.
=> Meteor 2.15 is available. Check the changelog
https://docs.meteor.com/changelog.html and update this project with 'meteor
update'.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
W20240215-11:27:03.516(0)? (STDERR) ENOENT: no such file or directory, open '.meteor/local/build/programs/web.browser/packages/meteor.js'
W20240215-11:27:03.549(0)? (STDERR) ENOENT: no such file or directory, open '.meteor/local/build/programs/web.browser/packages/tracker.js'
W20240215-11:27:03.550(0)? (STDERR) ENOENT: no such file or directory, open '.meteor/local/build/programs/web.browser/packages/meteor.js'
W20240215-11:27:03.559(0)? (STDERR) 11:27:03 [vite] Internal server error: ENOENT: no such file or directory, open '.meteor/local/build/programs/web.browser/packages/meteor.js'
W20240215-11:27:03.559(0)? (STDERR)
Oops. These changes haven't been merged in with this repo just yet. 😅 Keeping it open for now.
For testing purposes, it can be useful to run meteor locally, using a different local cache location. This article: https://blog.meteor.com/testing-a-meteor-app-with-cypress-bfb3d3c6ed6f suggests doing this with the
METEOR_LOCAL_DIR
environment variable that was introduced in meteor v1.3.3. Can this be supported by meteor-vite? If I create a skeleton vue project in meteor 2.15 and run meteor locally with this ENV variable the app fails with the following output: