New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't resolve 'mdbreact' #8
Comments
I noticed in their project they used an alias that points to where the /src directory lives in the resolve section of the webpack config.
|
@carlgrimm so what is the solution ? I don't get it. same issue for me |
One way is to get an alias into the resolve config section of your webpack configuration file if you are using webpack to build. This repo builds the docs site using webpack and you can see in their configuration file that they create a resolve alias that maps mdbreact to the components they export in /src/index.js which fixes this en-mass for all of the components. it also appears that the git repo might be out of sync with NPM package. The git repo has an index.js file that helps load everything that seems to be missing when you add from NPM. |
I'm having the same problem. I tried installing from NPM and from Github download, but couldn't get it to work. Anyone find out exactly what needs to be done to solve this? |
It's fixed in 4.1.0 |
@mattonit it's not fixed..still i'm getting this issue..please help me to solve it.. |
what's your version of React? |
16.2.0 |
Hello, "mdbreact":"git+https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design.git#react-upgrade" Let us know if it works properly. Regards |
still not working.. |
its giving multiple errors now..jquery not defined..when i'm trying to test by copying the navbar code..'navbar' has no owner...such things.. |
Please build a new React App and check our mdbreact with it. It's not possible to see jquery errors because it's not working with jquery, but with plain js. If it's still not working please write what are Your steps to create this App. |
I created a new project through:
create-react-app myproject
Then after installation..i ran the command:
npm install --save mdbreact
And when i copied the code of navbar for testing purpose..it gave me that error..did i miss something?
…Sent from my Windows Phone
-----Original Message-----
From: "m_smolenski" <notifications@github.com>
Sent: 21/02/2018 02:14 PM
To: "mdbootstrap/React-Bootstrap-with-Material-Design" <React-Bootstrap-with-Material-Design@noreply.github.com>
Cc: "Hamza Iqbal Mallick" <hiqbalmallick@gmail.com>; "Comment" <comment@noreply.github.com>
Subject: Re: [mdbootstrap/React-Bootstrap-with-Material-Design] Can't resolve'mdbreact' (#8)
Please build a new React App and check our mdbreact with it. It's not possible to see jquery errors because it's not working with jquery, but with plain js. If it's still not working please write what are Your steps to create this App.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is there a fix for this? I'm having the same issue |
Haven't found yet..
…Sent from my Windows Phone
-----Original Message-----
From: "Iain Richardson" <notifications@github.com>
Sent: 27/02/2018 11:12 PM
To: "mdbootstrap/React-Bootstrap-with-Material-Design" <React-Bootstrap-with-Material-Design@noreply.github.com>
Cc: "Hamza Iqbal Mallick" <hiqbalmallick@gmail.com>; "Comment" <comment@noreply.github.com>
Subject: Re: [mdbootstrap/React-Bootstrap-with-Material-Design] Can't resolve'mdbreact' (#8)
Is there a fix for this? I'm having the same issue
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Having this same issue. |
I'm having the same error. |
Since new updates, it's working, which version do you use ? |
Still importing like: import { Button, Modal, ModalBody, ModalHeader } from 'mdbreact'; |
Is there a solution to this yet? Still having the same issue with mdbreact 4.8.3 |
If you have problem with installation please check out our support forum, or open new issue. This issue is closed and not tracked. |
У меня та же ошибка. ERROR in ./src/components/Boxes.js |
same issue, module not found. |
Hello @ferryal !
// Modify the ReactDOM.render() to the below ReactDOM.render( |
This worked for me
Taken from StackOverflow |
Step 1 Step 2 Import style files into the src/index.js before the App.js file import: index.js Step 3 Run your app Terminal |
Hello,
When i try to import Button and Collapse, i get:
Import:
import { Button, Collapse } from 'mdbreact';
Error:
Module not found: Can't resolve 'mdbreact' in 'C:\wamp64\www\bob-web\notice-cmi\src\components\Collapsable'
I installed it with npm. Did i miss something ?
The text was updated successfully, but these errors were encountered: