nextra
nextra copied to clipboard
Error while building
When attempting to build my self hosting docs, here is the error I get. For reference, the content in my .mdx
file is below.
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.
- 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.
- 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.
- Lastly run the following, to run the bot:
node index.js
Since GitHub keeps rendering it, this is the link to the raw file: https://raw.githubusercontent.com/TheAwesomeCoder05/nextra/master/pages/hosting/instructions.mdx
Hey! Looks like there is an unexpected character in there (based on the error). Could you try removing that?
Doesn't look like there is though. What is the unexpected character exactly, there is not "!".
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 {/* ... */}
.
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
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.
Try changing the unclosed <br>
to <br/>
, that could be the case.
Alright. Let me try that out.
Looks like the same error:
Here's the new updated file: https://raw.githubusercontent.com/CompeyDev/nextra/master/pages/advanced/selfhost.mdx
@CompeyDev did you try the latest beta version of nextra? Do you have this error while building your project locally?
Oh, I've not tried actually. And no, this error doesn't occur locally if I recall.
@CompeyDev do you have still an issue in the latest beta 2 version?
Just tried, seems to work perfectly! 👍