Comments (17)
We have fixed this issue with release [email protected],
comment here if you have an issue
from md2.
@dharmeshpipariya I have the same problem:
Uncaught Error: Cannot find module "."
webpackMissingModule @ all.js:12
from md2.
I also get exactly the same problem - I am using Angular CLI v1.0.0-beta.16 and md2 v0.0.2
My app.module.ts file contains:
...
import { Md2Module } from 'md2/all';
...
@NgModule({
declarations: [...],
imports: [
...,
Md2Module.forRoot()
],
...
This error seems to occur at the point where Md2Module.forRoot() is called, giving the stacktrace shown by @sitexw.
I haven't even got any code that uses any of the Md2 directives in any of my html files yet.
2016/10/07: Just tried again with v0.0.3 of md2 - same error :(
2016/10/11: Just tried again with v0.0.4 of md2 - same error :(
2016/10/20: Just tried again with v0.0.6 of md2 - this time get a new error:
metadata_resolver.js:700
Uncaught Error: moduleId should be a string in "Md2TooltipComponent". See https://goo.gl/wIDDiL for more information.
If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.
from md2.
I have the same config as you Mufasa, and I had the same issue.
I fixed it by commenting this line in the "node_modules/md2/tooltip/tooltip.component.ts" :
moduleId: module.id,
So now I have :
// moduleId: module.id,
from md2.
mkkr - thanks for the tip - your suggestion gave me an insight that I tried - I changed the line in the node_modules/md2/tooltip/tooltip.component.ts
from:
moduleId: module.id,
to:
moduleId: String(module.id),
Now I don't get the error :)
from md2.
We have fixed this issue with release [email protected],
comment here if you have an issue
from md2.
@adrian-heath please refer our demo code for MD2 demo code also use latest version of md2 is 0.0.0-alpha.7
from md2.
@dharmeshpipariya This still doesn't work with the latest angular-cli boilerplate project which no longer uses systemjs. You can recreate this easily by following these steps.
npm Install angular-cli beta 15
ng new md2-test
cd md2-test
ng serve
browse to localhost:4200 and should see App works!
npm install --save md2
open app.module.ts and add
import { Md2Module } from 'md2/all';
and add
Md2Module.forRoot() to the imports
run ng serve again
this time the browser sticks on laoding and the console shows the error
Uncaught Error: Cannot find module "."
from md2.
I have exactly the same problem (but I do not use Angular CLI)
from md2.
In fact, the error occurs when compiling webpack:
from md2.
Also using this with a Webpack based setup and having the same error. Help needed!
from md2.
I got the same using Angular WebPack.
from md2.
Any word on this?
from md2.
Issue if fixed for me with the latest version of md2. Thanks.
from md2.
Works like magic. Thank you
from md2.
It hasn't been fixed for me.
I am using Angular CLI v1.0.0-beta.17 and md2 v0.0.6
My app.module.ts file contains:
...
import { Md2Module } from 'md2';
...
@NgModule({
declarations: [...],
imports: [
...,
Md2Module.forRoot()
],
...
I haven't even got any code that uses any of the Md2 directives in any of my html files yet.
With this latest release of md2 I get a new error:
from md2.
https://github.com/dharmeshpipariya/material2-demo/issues/1
from md2.
Related Issues (20)
- [md2-toast] position change
- Display Weeknumber HOT 2
- Year value always starts at 1900 if 2 digits for the year is used HOT 2
- How to set focus on Autocomplete input
- Md2Autocomplete don´t escape special characters on input in regex when insert '+'
- Md2Dialog not call onClose() event on 'Esc'
- How to detect colorpicker change event
- DatePicker parses with Y, but doesn't format with Y.
- md2-datepicker allowing character(s) after a valid date
- web pack build prod not working
- Package is not compatible with latest rxjs ^6.0.0 HOT 14
- Datepicker placeholder merges with incorrect input (when datepicker lose focus)
- Maxlength in autocomplete.
- md2-select - inserting random characters while in search, stops the behaviour of select functionality
- How to internationalize dates
- Angular 6.X peer dependencies
- Multiselect does not close on IE11(Accordion) if display:none
- Is there support for Angular 7?
- Angular 8 support HOT 4
- ERROR in node_modules/md2/core/a11y/list-key-manager.d.ts(2,10): error TS2305: Module has no exported member "Observable"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md2.