Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Cannot set property 'exports' of undefined #75

@jackmellis

Description

@jackmellis

I've recently started getting this error with vue-touch. I'm using webpack 2 / vue 2. It works fine in development, but when I create my production build, I get this error.

It looks like the module variable (renamed to t by webpack's uglifier) is being overwritten in the main anonymous method's global.

I suppose that a simple global 'use strict' somewhere in the application would prevent the global object being passed in. I think webpack is forcing strict mode because when I removed the -p flag (but kept the uglifier etc. switched on) it works fine.

image
...
image

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