Prerendering failed because of error: Error: Cannot find module #1120

Closed
opened 2025-08-09 17:18:57 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @rallycar176 on 1/11/2017

Hi,

I am relatively new to front end development and I using this as a starting template. I am trying to use the google maps ng directive - ng2-map.

I am getting the following error: Exception: Call to Node module failed with error: Prerendering failed because of error: Error: Cannot find module "ng2-map". I imported the 'ng2-module' into my app.module.ts and my ng2map-component.ts but the html template doesn't see the directive.

Typically I would import the component into the html webpage and it would bootstrap the component but with this template the spa html page is rendered dynamically. What am I doing wrong?

*Originally created by @rallycar176 on 1/11/2017* Hi, I am relatively new to front end development and I using this as a starting template. I am trying to use the google maps ng directive - [ng2-map](https://github.com/ng2-ui/ng2-map). I am getting the following error:` Exception: Call to Node module failed with error: Prerendering failed because of error: Error: Cannot find module "ng2-map"`. I imported the 'ng2-module' into my app.module.ts and my ng2map-component.ts but the html template doesn't see the directive. Typically I would import the component into the html webpage and it would bootstrap the component but with this template the spa html page is rendered dynamically. What am I doing wrong?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1120
No description provided.