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.

How to integrate into existing project--relative paths etc

See original GitHub issue

I’m testing out this version before hopefully buying the paid one. I can’t see a quick easy way to integrate it into an existing project though. For maintainability, portability, updates, etc, I don’t want to mix your components with mine and I need to be able to put your src folder anywhere in my tree. It seems like every instance of something like:

import buttonStyle from "assets/jss/material-dashboard-react/components/buttonStyle.jsx";

breaks webpack because the paths aren’t relative.

How are people integrating this with an existing project? Am I missing something? I don’t want to structure my app like yours, I don’t want your router, etc. I just want the components and layouts.

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
nolandgcommented, Jul 12, 2018

Ideally, do you have this as an npm package so one could just import all the components and make MUI a peer dep?

1reaction
einazarecommented, Jul 13, 2018

Hello @nolandg ,

Since the pro version, is paid / with money we do not keep it on npm. As of moment we are testing on how we can add our paid products on npm. You cannot use our paid version and put it on npm (since it is paid / it is not open source).

Best, Manu

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to specify relative paths in .vsprops file - Stack Overflow
You can use MSBuildThisFileDirectory macro. For example: You set Include Directories to "$(MSBuildThisFileDirectory)\include;$(IncludePath)" ...
Read more >
2.8.1.1. Use Relative Paths - Intel
Use Relative Paths. Express file paths using relative path notation (../). For example, in the directory structure shown you can specify top.v as...
Read more >
How to compute relative path in project's settings automatically
Answer. Enable the option Use Relative Project's Path computing in the settings file selectors through the menu Edit > Preferences > Project.
Read more >
Adding file uses absolute path - MSDN - Microsoft
When i try to add a source code file to a project, it embeds the absolute path, instead of relative path. I have...
Read more >
Opinions on EG best practices - code location and relative paths
My conclusion: If you have EG available in all your environments, keeping the code inside the program is the way to go as...
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