Skip to content

webpack support #53

@kleinph

Description

@kleinph

If I try to import AngularStompDK with import AngularStompDK from 'AngularStompDK';, I get the following error message:

Uncaught Error: Cannot find module "."
    at webpackMissingModule (angular-stomp.min.js:1)
    at angular-stomp.min.js:1
    at Object.<anonymous> (angular-stomp.min.js:1)
    at Object.module.exports.import (angular-stomp.min.js:2)
    at __webpack_require__ (bootstrap 319d65adb53f8f2ff734:54)
    at Object.h (index.js:1)
    at __webpack_require__ (bootstrap 319d65adb53f8f2ff734:54)
    at Object.<anonymous> (shot.module.js:3)
    at __webpack_require__ (bootstrap 319d65adb53f8f2ff734:54)
    at Object.<anonymous> (main.bundle.js?319d65adb53f8f2ff734:107)

If I try it with the ES 2015 module (import ngStomp from 'AngularStompDK/core/ngStomp';), I get:

libs.bundle.js?73ff7fcae564d1fff95c:128584 Uncaught Error: Cannot find module "stompjs"
    at Object.<anonymous> (libs.bundle.js?73ff7fcae564d1fff95c:128584)
    at __webpack_require__ (bootstrap 73ff7fcae564d1fff95c:54)
    at Object.<anonymous> (shot.module.js:3)
    at __webpack_require__ (bootstrap 73ff7fcae564d1fff95c:54)
    at Object.<anonymous> (main.bundle.js?73ff7fcae564d1fff95c:107)
    at __webpack_require__ (bootstrap 73ff7fcae564d1fff95c:54)
    at Object.Array.concat.map../log (main.bundle.js?73ff7fcae564d1fff95c:6)
    at __webpack_require__ (bootstrap 73ff7fcae564d1fff95c:54)
    at webpackJsonpCallback (bootstrap 73ff7fcae564d1fff95c:25)
    at main.bundle.js?73ff7fcae564d1fff95c:1

So is it possible to also add support for Webpack?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions