question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It's not importing any components

See original GitHub issue

I am using React and React DOM versions 15.4.2.

When I try to import components like this:

import React, { Component, PropTypes } from 'react';
import { Button, Modal, ModalBody, ModalHeader, ModalFooter } from 'mdbreact';

PHPStorm gives me errors saying cannot resolve symbol 'Modal'

When I click on the button to show the modal I get the following error in the console:

2018-02-07_10h22_51

I am using "mdbreact": "^4.1.0",

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
JStrebeykocommented, Feb 8, 2018

Hi guys, thanks for the feedback. The above mentioned solution seems to be effective only for React 16 and higher, so please update your dependencies if it’s possible. As of now there’s no task assigned for curating this backward-compatibility issue.

0reactions
Rotarepmicommented, Oct 8, 2018

I assume that this issue can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import my custom components in Angular
Since you have WidgetsModule imported and InputComponent is exported inside it, there doesn't seem to be a reason why this wouldn't work. One ......
Read more >
Import a component from an Angular library fails. #1533 - GitHub
I am running the latest version; I checked the documentation and found no answer; I checked to make sure that this issue has...
Read more >
Dynamically Importing Components with React.lazy
Not all static imports are immediately needed, and unnecessary imports can be costly. With React.lazy, you can dynamically import components ...
Read more >
Auto Import Components In Svelte Kit - Weekly Svelte - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
import - JavaScript - MDN Web Docs - Mozilla
The imported bindings are called live bindings because they are updated ... There is also a function-like dynamic import() , which does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found