Skip to content

Uncaught TypeError: __webpack_require__(...).filter is not a function #36

@p2227

Description

@p2227

step1

npm install -g yo generator-react-webpack-redux

step2

# Create a new directory, and `cd` into it:
mkdir my-new-project && cd my-new-project

# Run the generator
yo react-webpack-redux

now if you npm start it works.
step3

npm i react-router react-router-proxy-loader -S

step4
modify index.js and add

import 'react-router';
import 'react-router-proxy-loader';

then it throw error above

the error code is

var emojiList = require("emojis-list").filter(function(emoji) {

var emojiList = require("emojis-list").filter(function(emoji) {
    return emojiRegex.test(emoji)
});

step5
modify index.js:

import 'react-router';
// import 'react-router-proxy-loader';

there is no error again

I think there are some conflicts between webpack loader-utils emojis-list and react-router-proxy-loader

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