Skip to content

Webpack: 3rd Party module not found, but functional #1513

@itsJess1ca

Description

@itsJess1ca

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Windows 10
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    local (v1.0.0-beta.10, branch: master)
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
  • App created with webpack cli built from master.
  • Ran npm install lodash --save,
  • imported lodash into my component with import * as _ from 'lodash';
  • proceeded to use lodash functions (_.forIn() in this case)
  1. The log given by the failure. Normally this include a stack trace and some
    more information.
    Cannot find module 'lodash' .
  2. Mention any other details that might be useful.
    I haven't noticed this with other libs I'm using, including material2 and ngrx/store.

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions