Meteor to pickup file changes and automatically restart server after building.
Actual behavior
Meteor detects file changes but throws error during build process.
Information
the error after changing a file:
/root/.meteor/packages/templating/.1.2.13.2shieh++os+web.browser+web.cordova/plugin.compileTemplatesBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
throw error;
^
Error: ENOENT: no such file or directory, open '/app/.meteor/local/build/programs/web.browser/app/.builder-tmp-file.688075'
at Error (native)
For anyone else having this problem, I figured out a workaround for the breaking meteor builds with osxfs. There is some issue with the .meteor/local/build folder syncing as whenever a file change was detected meteor would throw errors expecting files to be there that weren’t for some reason.
I simply created an empty volume on my docker compose file:
volumes:
meteor_local:
And used that volume to mount the ./meteor/local folder to the container.
Beta 21.1 was recently released which fixed a number of issues with symptoms similar to those that you report. Could you please try Beta 21.1 (build 11019) and let us know if the original issue has been resolved?
I haven’t tested your example because I couldn’t figure out how to create a basic meteor app but I believe that several similar issues were fixed in a recent Beta 21 hotfix (build 11019). If you could try it out and let us know if it resolves your issue, that would be fantastic.