Akryum / Akryum/meteor-vite

METEOR_LOCAL_DIR

Ouverte
#46 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
33
Forks
22
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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](https://github.com/meteor/meteor/blob/devel/docs/history.md#v133-2016-06-10). 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:

```
me@mymachine:~/Software/meteor-vue-2.15$ METEOR_LOCAL_DIR=.meteor/test meteor
[[[[[ ~/Software/meteor-vue-2.15 ]]]]]

=> Started proxy.
=> Started HMR server.
=> Started MongoDB.
I20240214-11:21:14.127(0)? ⚡ Starting Vite server...
W20240214-11:21:14.131(0)? (STDERR) ⚡ You are using an out of date version of `meteor-vite`.
W20240214-11:21:14.131(0)? (STDERR) Please update it: $ meteor npm i meteor-vite@1.8.0
=> Started your app.

=> App running at: http://localhost:3000/
I20240214-11:21:14.377(0)? ➜ Local: http://localhost:5173/
I20240214-11:21:14.377(0)? ➜ Network: use --host to expose
I20240214-11:21:14.383(0)? ⚡ Meteor-Vite ready for connections!
I20240214-11:21:14.385(0)? ⚡ Meteor-Vite ready for connections!
W20240214-11:21:15.972(0)? (STDERR) (node:1361692) UnhandledPromiseRejectionWarning: Error: Unable to read file content: ENOENT: no such file or directory, open '.meteor/local/build/programs/web.browser/packages/meteor.js'
W20240214-11:21:15.972(0)? (STDERR) at file:///home/matt/Software/meteor-vue-2.15/node_modules/meteor-vite/dist/bin/worker.mjs:1349:13
W20240214-11:21:15.972(0)? (STDERR) (Use `node --trace-warnings ...` to show where the warning was created)
W20240214-11:21:15.973(0)? (STDERR) (node:1361692) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
W20240214-11:21:15.973(0)? (STDERR) (node:1361692) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
W20240214-11:21:15.995(0)? (STDERR)
W20240214-11:21:15.995(0)? (STDERR) ERROR Unable to read file content: ENOENT: no such file or directory, open '.meteor/local/build/programs/web.browser/packages/meteor.js'
W20240214-11:21:15.996(0)? (STDERR) undefined
W20240214-11:21:15.996(0)? (STDERR)
W20240214-11:21:15.996(0)? (STDERR) --[Error Stack]----------------------------------------------------------------------
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.