Skip to content

"ReferenceError: require is not defined" using webpack 2 when running the application #121

Description

@esteban-filardi

Hello, I'm getting this error when running the application. I'm using webpack 2

ReferenceError: require is not defined

Here's how I import the module on index.js

import ngWebSocket from 'angular-websocket';
...
angular.module('app', [
   ...
  'ngWebSocket'
]);

I tried looking for a solution in the issues, change things on webpack.config.js, but none of the solutions worked.

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