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.

Publishing to Github Pages

See original GitHub issue

I was attempting to publish to github pages following your docs and was receiving the error: ReferenceError: path is not defined for the code below:

const opts = { cwd: path.resolve(__dirname, './build'), stdio: ['ignore', 'inherit', 'inherit'] };

Is path something I’m supposed to set within this file or could it be something else?

Thank you for taking the time to help!

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lifeiscontentcommented, Aug 13, 2016

@koistya it seems that the javascript doesn’t get referenced properly.

https://lifeiscontent.github.io/OpenPoGoUI/

the JS isn’t pointing to the correct path.

1reaction
Impaviditycommented, Aug 4, 2016

@ferologics Same error. But I just add

const path = require('path');

before and it may work for me. I am not sure whether it is right or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating a GitHub Pages site
On GitHub, navigate to your site's repository. · Decide which publishing source you want to use. · Create the entry file for your...
Read more >
Publish your site on Github
Github will allow you to publish project websites for each of your repositories (known as github pages or gh-pages ). They will end...
Read more >
How to Publish an HTML Website on Netlify or GitHub Pages
How to Publish a Website on GitHub · Step 1: Go to your website's repository · Step 2: Select the settings · Step...
Read more >
Deploying to GitHub Pages - Codecademy
You can set up your GitHub Pages to deploy every one of your repositories in addition to <username>.github.io . This will allow you...
Read more >
Use Custom Domain With GitHub Pages: 2 Straightforward ...
Publish Your Website Using GitHub Pages · STEP 1: Create Repository · STEP 2: Push Your Code · STEP 3: Go To Settings...
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