TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pradeep S
1.3k
471
620.6k
Cannot find module in angular routing
Jul 4 2018 5:34 AM
My Angular project folder structure is
+-- app.module.ts
+-- app-routing.ts
+-- app.component.ts
+-- product/
| +-- product.module.ts
| +-- product-routing.ts
| +-- product-detail/
| | +--product-detail.component.ts
| | +--product-detail.component.html
In my app-routing.ts
{path:'products',loadChildren:'app/products/products.module#ProductsModule'}
In my product-routing.ts
{ path: 'detail', component: ProductDetailComponent }
When I load the url -
page/products/detail
, I get the following error
> ERROR Error: Uncaught (in promise): Error: Cannot find module "app/products/products.module".
Error: Cannot find module "app/products/products.module".
Steps tried
tried changing 'app/products/products.module#ProductsModule'
to './products/products.module#ProductsModule'. not solved.
Where I have went wrong? Any help is appreciated.
Reply
Answers (
2
)
npm WARN deprecated
[email protected]
: Please update to minima
How to use MS-Adal in Ionic 3Native?