Skip to content

parsleyjs - Uncaught ReferenceError: returntrue is not defined #1244

@mmrcdx

Description

@mmrcdx

I'm trying to require a minified version of the parsleyjs library but it's producing a console js error on page load (webpack compilation works fine but it seems it's corrupting the source).

Installed using
npm install parsleyjs

Required using

  • require('parsleyjs/parsleyjs') : this works on page load
  • require('parsleyjs/parsleyjs.min') : this gives the error on page load Uncaught ReferenceError: returntrue is not defined

Webpack Config

        resolve: {
            extensions: ['', '.js', '.coffee', '.scss', '.less', '.css'],
        },
        module: {
            loaders : {
                {
                    test: /\.css$/,
                    loader: "style-loader!css-loader"
                }
            }
        }

Stack Trace

(anonymous function)    @   parsley.min.js:8
(anonymous function)    @   parsley.min.js:8
(anonymous function)    @   parsley.min.js:8
(anonymous function)    @   parsley.min.js:8
__webpack_require__ @   bootstrap 578d15ff7d895d57a5b4:19
(anonymous function)    @   entry.coffee:26
__webpack_require__ @   bootstrap 578d15ff7d895d57a5b4:19
(anonymous function)    @   bootstrap 578d15ff7d895d57a5b4:39
__webpack_require__ @   bootstrap 578d15ff7d895d57a5b4:19
(anonymous function)    @   bootstrap 578d15ff7d895d57a5b4:39
(anonymous function)    @   bootstrap 578d15ff7d895d57a5b4:39

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