nextra icon indicating copy to clipboard operation
nextra copied to clipboard

Error while building

Open CompeyDev opened this issue 2 years ago • 11 comments

When attempting to build my self hosting docs, here is the error I get. For reference, the content in my .mdx file is below.

image

Contents:

# Self Hosting Instructions 1. Clone and checkout the release branch (or download the the latest release at [releases](https://github.com/TheAwesomeCoder05/MusicComp-v2/releases)):
git clone https://github.com/TheAwesomeCoder05/MusicComp-v2.git
cd MusicComp-v2
git checkout release

OR
The semi-updated version using CDNs at here.

  1. CD to the directory and install the package and dependencies using:
bash -f setup.sh

OR

Manually install the packages using:

i. NPM:

npm install musiccomp-discord-bot --legacy-peer-deps

ii. Yarn:

yarn add musiccomp-discord-bot

Please do note that yarn package will always be 1 version ahead of the npm package.

  1. Edit the botconfig.js file and enter your Discord Token from here, along with a spotify API Token from here and a YouTube API Token from here.
  2. Lastly run the following, to run the bot:
node index.js

CompeyDev avatar Feb 24 '22 15:02 CompeyDev

Since GitHub keeps rendering it, this is the link to the raw file: https://raw.githubusercontent.com/TheAwesomeCoder05/nextra/master/pages/hosting/instructions.mdx

CompeyDev avatar Feb 24 '22 15:02 CompeyDev

Hey! Looks like there is an unexpected character in there (based on the error). Could you try removing that?

leerob avatar Mar 03 '22 18:03 leerob

Doesn't look like there is though. What is the unexpected character exactly, there is not "!".

CompeyDev avatar Mar 04 '22 04:03 CompeyDev

The file link shows 404 for me. As per the error message, did you have a HTML comment somewhere?

<!-- ... -->

If so please change it to {/* ... */}.

shuding avatar Mar 06 '22 09:03 shuding

Oh sorry, my bad. I deleted the file later. Here's the file: https://raw.githubusercontent.com/CompeyDev/MusicComp-v2/production/docs/docs/SELFHOST.md

CompeyDev avatar Mar 06 '22 10:03 CompeyDev

The file link shows 404 for me. As per the error message, did you have a HTML comment somewhere?

<!-- ... -->

If so please change it to {/* ... */}.

Nope, I didn't.

CompeyDev avatar Mar 06 '22 10:03 CompeyDev

Try changing the unclosed <br> to <br/>, that could be the case.

shuding avatar Mar 07 '22 07:03 shuding

Alright. Let me try that out.

CompeyDev avatar Mar 07 '22 07:03 CompeyDev

Looks like the same error: image

Here's the new updated file: https://raw.githubusercontent.com/CompeyDev/nextra/master/pages/advanced/selfhost.mdx

CompeyDev avatar Mar 07 '22 07:03 CompeyDev

@CompeyDev did you try the latest beta version of nextra? Do you have this error while building your project locally?

dimaMachina avatar Jul 31 '22 12:07 dimaMachina

Oh, I've not tried actually. And no, this error doesn't occur locally if I recall.

CompeyDev avatar Aug 01 '22 11:08 CompeyDev

@CompeyDev do you have still an issue in the latest beta 2 version?

dimaMachina avatar Aug 20 '22 14:08 dimaMachina

Just tried, seems to work perfectly! 👍

CompeyDev avatar Aug 21 '22 06:08 CompeyDev