Giter Site home page Giter Site logo

Comments (17)

dharmeshpipariya-zz avatar dharmeshpipariya-zz commented on August 22, 2024 3

We have fixed this issue with release [email protected],
comment here if you have an issue

from md2.

miukimiu avatar miukimiu commented on August 22, 2024 1

@dharmeshpipariya I have the same problem:

Uncaught Error: Cannot find module "."
webpackMissingModule    @ all.js:12

from md2.

Mufasa avatar Mufasa commented on August 22, 2024 1

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.

mkkr avatar mkkr commented on August 22, 2024 1

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.

Mufasa avatar Mufasa commented on August 22, 2024 1

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.

dharmeshpipariya-zz avatar dharmeshpipariya-zz commented on August 22, 2024 1

We have fixed this issue with release [email protected],
comment here if you have an issue

from md2.

dharmeshpipariya-zz avatar dharmeshpipariya-zz commented on August 22, 2024

@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.

adrian-heath avatar adrian-heath commented on August 22, 2024

@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.

sitexw avatar sitexw commented on August 22, 2024

I have exactly the same problem (but I do not use Angular CLI)
image

from md2.

sitexw avatar sitexw commented on August 22, 2024

In fact, the error occurs when compiling webpack:
image

from md2.

gorkamolero avatar gorkamolero commented on August 22, 2024

Also using this with a Webpack based setup and having the same error. Help needed!

from md2.

rafaelss95 avatar rafaelss95 commented on August 22, 2024

I got the same using Angular WebPack.

from md2.

gorkamolero avatar gorkamolero commented on August 22, 2024

Any word on this?

from md2.

aroop avatar aroop commented on August 22, 2024

Issue if fixed for me with the latest version of md2. Thanks.

from md2.

gorkamolero avatar gorkamolero commented on August 22, 2024

Works like magic. Thank you

from md2.

Mufasa avatar Mufasa commented on August 22, 2024

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:
screen shot 2016-10-22 at 12 11 18

from md2.

sunillokhande avatar sunillokhande commented on August 22, 2024

https://github.com/dharmeshpipariya/material2-demo/issues/1

from md2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.