After installing meteor add accounts-ui accounts-password and completing the step 8. my app doesn’t work. In browser windows it displays blue background but nothing from tasks or user input field does’t shows up. In console I get this errors.
at fallback (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:609)
at Module.require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:254)
at Module.moduleLink [as link] (modules.js?hash=e336cd2b168caf1faf92630f2209c6fffc958cf3:313)
at accounts-config.js (accounts-config.js:1)
at fileEvaluate (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:346)
at Module.require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:248)
at Module.moduleLink [as link] (modules.js?hash=e336cd2b168caf1faf92630f2209c6fffc958cf3:313)
at main.js (main.js:1)
at fileEvaluate (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:346)
at Module.require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:248)
Uncaught Error: Target container is not a DOM element.
at invariant (modules.js?hash=e336cd2b168caf1faf92630f2209c6fffc958cf3:3619)
at legacyRenderSubtreeIntoContainer (modules.js?hash=e336cd2b168caf1faf92630f2209c6fffc958cf3:23454)
at render (modules.js?hash=e336cd2b168caf1faf92630f2209c6fffc958cf3:23535)
at Meteor.startup (main.js:9)
at maybeReady (meteor.js?hash=33066830ab46d87e2b249d2780805545e40ce9ba:927)
at HTMLDocument.loadingCompleted (meteor.js?hash=33066830ab46d87e2b249d2780805545e40ce9ba:939)
invariant @ modules.js?hash=e336cd2b168caf1faf92630f2209c6fffc958cf3:3619
legacyRenderSubtreeIntoContainer @ modules.js?hash=e336cd2b168caf1faf92630f2209c6fffc958cf3:23454
render @ modules.js?hash=e336cd2b168caf1faf92630f2209c6fffc958cf3:23535
Meteor.startup @ main.js:9
maybeReady @ meteor.js?hash=33066830ab46d87e2b249d2780805545e40ce9ba:927
loadingCompleted @ meteor.js?hash=33066830ab46d87e2b249d2780805545e40ce9ba:939
which points to Meteor.startup @ main.js: 9 and there is render(<App />, document.getElementById('render-target'));
Note: you are using a pure-JavaScript implementation of bcrypt.
While this implementation will work correctly, it is known to be
approximately three times slower than the native implementation.
In order to use the native implementation instead, run
meteor npm install --save bcrypt
in the root directory of your application.
Errors prevented startup:
While running post-startup callbacks:
error: write EPIPE
Your application has errors. Waiting for file change.
I’ve tried to install --save bcrypt but no resaults too.
That is strange. I don’t import my main.html in my main.js. But then I have this function there to make sure that there is always a div to insert React into:
function getRootNode(rootId) {
const rootNode = document.getElementById(rootId);
if (rootNode) return rootNode;
const rootNodeHtml = `<div id="${rootId}"></div>`;
const body = document.getElementsByTagName('body')[0];
body.insertAdjacentHTML('beforeend', rootNodeHtml);
return document.getElementById(rootId);
}