Skip to content
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

Failed to compile on running the start command #7

Open
pereiraryan opened this issue Apr 17, 2019 · 19 comments
Open

Failed to compile on running the start command #7

pereiraryan opened this issue Apr 17, 2019 · 19 comments

Comments

@pereiraryan
Copy link

pereiraryan commented Apr 17, 2019

I cloned this repo and followed the steps to start the local development server.
The very same moment the app crashes saying

`./src/App.js
Module not found: Can't resolve './shards-dashboard/styles/shards-dashboards.1.1.0.min.css'


Screen Shot 2019-04-17 at 3 34 48 PM

@AdrianoMoura
Copy link

That folder is a git submodule on this project, you will need to run:

$ git submodule init
$ git submodule update

So it will download the dependency

@AdrianoMoura
Copy link

Maybe was a good idea to add this on the README

@sunnixx
Copy link

sunnixx commented Apr 26, 2019

I've tried your suggestion but it's asking for .ssh/id_rsa key

@DonsWayo
Copy link

DonsWayo commented May 6, 2019

same issue here

@hisk
Copy link
Contributor

hisk commented May 6, 2019

@pereiraryan @sunnixx @DonsWayo I apologize for the delay.

Make sure to run git clone [email protected]:DesignRevision/shards-dashboard-react.git --recurse-submodules to clone the repo (including its submodules) and let me know how it goes. 😄

@DonsWayo
Copy link

DonsWayo commented May 6, 2019

@hisk I cant clone , give me this error
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@hisk
Copy link
Contributor

hisk commented May 6, 2019

@DonsWayo Can you please try to replace the contents of the .gitmodules file from:

[submodule "src/shards-dashboard"]
	path = src/shards-dashboard
	url = [email protected]:DesignRevision/shards-dashboard.git
	branch = master

Into the following:

[submodule "src/shards-dashboard"]
	path = src/shards-dashboard
	url = https://github.com/DesignRevision/shards-dashboard.git
	branch = master

Afterwards, you can run the commands provided by @AdrianoMoura:

git submodule init && git submodule update

Please let me know if this fixes the issue for you. 😊

@DonsWayo
Copy link

DonsWayo commented May 6, 2019

@hisk I do the following

  • clone the master
  • add your latest suggestion
  • npm i
    -npm start

And works!! thanks!!

@kik-o
Copy link

kik-o commented May 9, 2019

Still not working for me, running macOS Mojave with Firefox/WebStorm

  1. Cloned master by downloading zip file
  2. Unzipped file, opened in WebStorm
  3. Added your suggestion
    3a. url = https://github.com/DesignRevision/shards-dashboard.git
  4. Proceeded to run npm install, then npm start

Still getting:

"Failed to compile" : Module not found: Can't resolve './shards-dashboard/styles/shards-dashboards.1.1.0.min.css' in '/Users/kiko/Downloads/shards-dashboard-react-master/src'

..any other tips?

Update:
Attempted $ git submodule init but was prompted with:

fatal: not a git repository (or any of the parent directories): .git

@tannerhallman
Copy link

I was able to get by this problem temporarily by copying the contents of the dependency (here https://github.com/DesignRevision/shards-dashboard/tree/525efdca736a2203b8c3e5f8f64c766841e71c57) into /src/shards-dashboard. It at least runs...

@hisk
Copy link
Contributor

hisk commented May 14, 2019

@KK-O Can you please start again from scratch by cloning the repo, applying the changes and running the commands I've mentioned earlier and see if the issue persists?

If it does, can you please provide a snapshot of your directory structure so I can check?

Thank you! I am waiting for your feedback.

@moona3k
Copy link

moona3k commented May 29, 2019

@KK-O Can you please start again from scratch by cloning the repo, applying the changes and running the commands I've mentioned earlier and see if the issue persists?

If it does, can you please provide a snapshot of your directory structure so I can check?

Thank you! I am waiting for your feedback.

I can also confirm that the following works.

  1. Clone the master (doesn't work if you download as zip)
  2. Inside .gitmodules, replace the content to below

[submodule "src/shards-dashboard"] path = src/shards-dashboard url = https://github.com/DesignRevision/shards-dashboard.git branch = master

  1. Run the command git submodule init && git submodule update

  2. Install the npm packages and start!

@caomanhquang
Copy link

@KK-O
Try to edit .git/config file

And replace submodule's url (from [email protected]:DesignRevision/shards-dashboard.git to https://github.com/DesignRevision/shards-dashboard.git)

@nieyuda
Copy link

nieyuda commented Jun 20, 2019

@KK-O
Try to edit .git/config file

And replace submodule's url (from [email protected]:DesignRevision/shards-dashboard.git to https://github.com/DesignRevision/shards-dashboard.git)

It works! Thank you!

@leslie-alldridge
Copy link

worked for me

@essare
Copy link

essare commented Nov 30, 2019

@KK-O
Try to edit .git/config file

And replace submodule's url (from [email protected]:DesignRevision/shards-dashboard.git to https://github.com/DesignRevision/shards-dashboard.git)

This worked for me. Thanks !

@Anas-MI
Copy link

Anas-MI commented Dec 31, 2019

Replace the contents of the .gitmodules file to this

[submodule "src/shards-dashboard"]
	path = src/shards-dashboard
	url = https://github.com/DesignRevision/shards-dashboard.git
	branch = master

and Try to run the command git submodule init && git submodule update

If it throws any error just edit the .git/config file and replace

[email protected]:DesignRevision/shards-dashboard.git

to

https://github.com/DesignRevision/shards-dashboard.git

and run command git submodule init && git submodule update and you should be good to go!

@amaazahmad2
Copy link

@KK-O
Try to edit .git/config file

And replace submodule's url (from [email protected]:DesignRevision/shards-dashboard.git to https://github.com/DesignRevision/shards-dashboard.git)

I dont have '.git/config' file. What should I do?

@Anas-MI
Copy link

Anas-MI commented Jan 17, 2020

@KK-O
Try to edit .git/config file
And replace submodule's url (from [email protected]:DesignRevision/shards-dashboard.git to https://github.com/DesignRevision/shards-dashboard.git)

I dont have '.git/config' file. What should I do?

It will be inside your .git folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests