Open SosaWISE opened 6 years ago
Had same error with Meteor 1.7.0.5. Version 1.6.1.4 works for me.
I didn't get anything displayed on chrome browser after building by "$ meter" , even if I successfully built it without any error. Is there any suggestion for me?
Try changing the extension to .ts in your package.json for client and server. "meteor": { "mainModule": { "client": "client/main.ts", "server": "server/main.ts" },
@kunal0303 tried that and got same error.
Since client/main.js and server/main.js are not used in this app, I just delete "meteor":{"mainModule":...}, from package.json, and it worked for me. My Meteor version is 1.10.1
If the main.js files are not available in the project, set their values to false in package.json
"meteor": { "mainModule": { "client": false, "server": false },
Not sure what is happening but I suspect that perhaps with the new version of Meteor the app does not work. Here is the error that I get: => Started proxy. => Errors prevented startup:
While building the application: error: Could not resolve meteor.mainModule "server/main.js" in package.json (os) error: Could not resolve meteor.mainModule "client/main.js" in package.json (web.browser) error: Could not resolve meteor.mainModule "client/main.js" in package.json (web.browser.legacy) error: Could not resolve meteor.mainModule "client/main.js" in package.json (web.cordova)
=> Your application has errors. Waiting for file change. => Started MongoDB.
Of course the main.js files are not in the tutorial.