Skip to content

Problem to build the panel #3074

Answered by matthewpi
MinePlay85 asked this question in Support
Discussion options

You must be logged in to vote


https://discord.com/channels/122900397965705216/658550982975946762/804499734919774268

For easier reference:
If you are having errors when running yarn build:production (command is used to rebuild the Panel's UI after making changes) and are on v1.2.2 or lower, you are probably missing the .babel-plugin-macrosrc.js file which is not included when installing the panel by following the documentation. In order to fix those errors you will need to download the file, you can do this by running wget https://raw.githubusercontent.com/pterodactyl/panel/v1.2.2/.babel-plugin-macrosrc.js.

The two known errors this fixes is Module not found: Error: Can't resolve '@emotion/react' and Error: .only must…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MinePlay85
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants