Skip to content

Cant get new versions of expose-loader to work #129

@J4v4Scr1pt

Description

@J4v4Scr1pt

I really need help with figuring out why I get this error:

_ERROR in ../node_modules/moment/moment.js (../node_modules/expose-loader/dist/cjs.js?moment!../node_modules/moment/moment.js)
Module build failed (from ../node_modules/expose-loader/dist/cjs.js):
ValidationError: Invalid options object. Expose Loader has been initialized using an options object that does not match the API schema.
 - options misses the property 'exposes'. Should be:
   non-empty string | object { globalName, moduleLocalName?, override? } | [non-empty string | object { globalName, moduleLocalName?, override? }, ...] (should not have fewer than 1 item)_

I had version 0.7.5 of expose-loader and updated to version 2.0.0 and the whole project dies.
I get several errors saying exactly the same but points to different files, some are my own others are libs from node_modules.

I have asked this on StackOverflow but no awnser has been posted beside my own on another issue that I solved.
On that thread you can see my webpack config file if needed.

I would really appreciate some help on this. If there is any more info you need let me know and I will provide it.

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