Meteor 1.5.2 TypeError: Path must be a string. Received undefined

When I do meteor build and deploy to server, I get this error when it reaches app.js. Hope someone can tell me how to fix this as some package may be in the way.

The error in the server:
2017-09-08 14:49:59 b962fb970b95 —> Starting app
2017-09-08 14:49:59 b962fb970b95 Detected app.js file
2017-09-08 14:49:59 b962fb970b95 path.js:8
2017-09-08 14:49:59 b962fb970b95 throw new TypeError('Path must be a string. Received ’ +
2017-09-08 14:49:59 b962fb970b95 ^
2017-09-08 14:49:59 b962fb970b95
2017-09-08 14:49:59 b962fb970b95 TypeError: Path must be a string. Received undefined
2017-09-08 14:49:59 b962fb970b95 at assertPath (path.js:8:11)
2017-09-08 14:49:59 b962fb970b95 at Object.posix.resolve (path.js:426:5)
2017-09-08 14:49:59 b962fb970b95 at Object. (/data/app/server-json.js:3:27)
2017-09-08 14:49:59 b962fb970b95 at Module._compile (module.js:409:26)
2017-09-08 14:49:59 b962fb970b95 at Object.Module._extensions…js (module.js:416:10)
2017-09-08 14:49:59 b962fb970b95 at Module.load (module.js:343:32)
2017-09-08 14:49:59 b962fb970b95 at Function.Module._load (module.js:300:12)
2017-09-08 14:49:59 b962fb970b95 at Module.require (module.js:353:17)
2017-09-08 14:49:59 b962fb970b95 at require (internal/module.js:12:17)
2017-09-08 14:49:59 b962fb970b95 at Object. (/data/app/npm-require.js:6:18)

Do you think I can force update of the packages I have in my project?

This project is already at Meteor 1.5.2, the latest release.
Your top-level dependencies are at their latest compatible versions.

The following top-level dependencies were not updated to the very latest
version available:

  • ostrio:templatehelpers 1.1.3 (2.1.3 is available)
  • semantic:ui-css 1.12.3 (2.2.4 is available)

Newer versions of the following indirect dependencies are available:

  • aldeed:autoform 5.8.1 (6.2.0 is available)
  • aldeed:collection2-core 1.2.0 (2.0.1 is available)
  • aldeed:schema-deny 1.1.0 (2.0.0 is available)
  • aldeed:schema-index 1.1.1 (2.0.0 is available)
  • aldeed:tabular 1.6.1 (2.1.1 is available)
  • aldeed:template-extension 3.4.3 (4.1.0 is available)
  • softwarerero:accounts-t9n 1.3.11 (2.0.1 is available)

Thanks.

You could try meteor update --all-packages

Thanks rob. Did this several times but same results saying that top level dependencies were not updated as I’ve posted above. Is there any way to force these to update to latest versions available?

While searching for similar issues I ended up in a thread that talked about increase node memory use. I increased from 4096 to 6144 (my mac has 8GB RAM) and now it works. somehow, recent updates to my application has increased RAM usage.

1 Like