Material-ui: Cannot find module 'react-popper'

Created on 1 May 2018  ·  22Comments  ·  Source: mui-org/material-ui

In my React-Meteor app after upgrading the materiali ui to the latest version today I have noticed weird behaviour:

screen shot 2018-05-01 at 17 52 25

After downgrading to beta-41 everything goes back to normal.

bug 🐛 external dependency

All 22 comments

I get same error for 1.0.0-beta.44 and 1.0.0-beta.40

react-popper has just cut a release after #11196: https://github.com/FezVrasta/react-popper/issues/160

I confirm, it's just broken.

Use [email protected] for now.

This should be ok with [email protected]

Just to clarify: the solution is to install react-popper as well as material ui?

@timothyallan No, it's to make sure that the yarn/npm's resolution of this transitive dependency (react-popper) is OK (>= 0.10.4 || <= 0.10.1).

cool, installing react-popper as well as material ui fixes it for us on b44 ;)

I installed react-popper as well as material-ui and I still get the message about missing react-popper... it happens only in watch mode and only on alternate compilations!! yarn 1.6.

I'm using react-popper 0.10.4 also :(

Same here, happened only on alternate compilations for

/node_modules/@material-ui/core/Tooltip/Tooltip.d.ts
(2,30): Cannot find module 'react-popper'.

I have the same problem with these packages and settings:

package.json

        "typescript": "2.8.3",
        "@material-ui/core": "^1.2.1",
        "@material-ui/icons": "^1.1.0",
        "react-scripts-ts": "^2.16.0",
        "webpack-dev-server": "^2.11.2"

tsconfig.json

{
    "compilerOptions": {
        "baseUrl": ".",
        "outDir": "build/dist",
        "target": "es5",
        "lib": ["es6", "dom"],
        "sourceMap": true,
        "jsx": "react",
        "allowSyntheticDefaultImports": true,
        "noImplicitReturns": true,
        "strictNullChecks": true,
        "strict": true,
        "noFallthroughCasesInSwitch": true,
        "rootDirs": [
            "src",
            "src/stories"
        ],
        "typeRoots": [
          "node_modules/@types"
        ],
        "paths": {
            "@root/*": ["./src/*"]
        }
    },
    "include": ["src/**/*"],
    "exclude": [
        "node_modules",
        ".git"
    ]
}

I also tried typescript 2.9.1 but couldn't fix the error.

I would like to create reproducing repo.

Thanks!

In my case downgrading did the job, but I don’t recall which version was it
On 13 Jun 2018, 13:12 +0200, Kazuya Gosho notifications@github.com, wrote:

I have the same problem with these packages and settings:
package.json
"typescript": "2.8.3",
"@material-ui/core": "^1.2.1",
"@material-ui/icons": "^1.1.0",
"react-scripts-ts": "^2.16.0",
"webpack-dev-server": "^2.11.2"
tsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "build/dist",
"target": "es5",
"lib": ["es6", "dom"],
"sourceMap": true,
"jsx": "react",
"allowSyntheticDefaultImports": true,
"noImplicitReturns": true,
"strictNullChecks": true,
"strict": true,
"noFallthroughCasesInSwitch": true,
"rootDirs": [
"src",
"src/stories"
],
"typeRoots": [
"node_modules/@types"
],
"paths": {
"@root/": ["./src/"]
}
},
"include": ["src/*/"],
"exclude": [
"node_modules",
".git"
]
}
I also tried typescript 2.9.1 but couldn't fix the error.
I would like to create reproducing repo.
Thanks!

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@MkbCtrl

Thanks for the comment. Which version of material-ui do you use now?

For the time being none, I have to pause developemnt, I was using beta's
On 13 Jun 2018, 15:43 +0200, Kazuya Gosho notifications@github.com, wrote:

@MkbCtrl
Thanks for the comment. Which version of material-ui do you use now?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Okay, thanks!

Any progress with it?

@akazakou react-popper is on it's way out of Material-UI. It should be solved with next release. I'm working on a Popper component, sharing the same concepts with Popover.

@oliviertassinari thank you! But it anyway, maybe it helps you resolve the problem https://github.com/mui-org/material-ui/issues/11266#issuecomment-399409660

I ran into a variation of this. It seems somewhere in the code is says

import warning from "warning";

instead of

import warning from "./warning";

or something similar. Is this a know issue? I will roll back to 1.2.1 to see if that fixes it.

But this seems react-popper related and not material-ui. Checking there also.

@richtera We do no longer use react-popper in v4.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TimoRuetten picture TimoRuetten  ·  3Comments

mb-copart picture mb-copart  ·  3Comments

ghost picture ghost  ·  3Comments

FranBran picture FranBran  ·  3Comments

reflog picture reflog  ·  3Comments