Coder Social home page Coder Social logo

Comments (11)

MaEdAlpha avatar MaEdAlpha commented on June 30, 2024

Try installing semantic-ui-css first before running yarn install

I used yarn add semantic-ui-react semantic-ui-css

This worked for me.

from substrate-front-end-template.

muddlebee avatar muddlebee commented on June 30, 2024

@MaEdAlpha thank you so much. but im still getting a new error after your fix.

➜ substrate-front-end-template git:(e36c75d) ✗ yarn build
Creating an optimized production build...
Failed to compile.

TypeError: Cannot read properties of undefined (reading 'get')

from substrate-front-end-template.

MaEdAlpha avatar MaEdAlpha commented on June 30, 2024

Yeah, so after that, you need to go to your semantic.min.css file.

You can hit Ctrl+ P and type the file name. That should bring you there. If not, then it's within your node_modules folder in the semantic-ui-css root folder.

Once you're in the semantic.min.css file search for this....

@font-face{font-family:Rating;src:url(data:application/x-font-ttf;charset=utf-8;;base64,

remove one of the ; beside base64 that should let it compile properly. Apparently someone made a typo on the package, and hasn't fixed it...so just remove that and it should work.

from substrate-front-end-template.

muddlebee avatar muddlebee commented on June 30, 2024

hey @MaEdAlpha

rating{font-size:2rem}@font-face{font-family:Rating;src:url(data:application/x-font-ttf;charset=utf-8;base64,

it looks okay only in my semantic.min.css file. I wonder where the issue is 🤔

from substrate-front-end-template.

muddlebee avatar muddlebee commented on June 30, 2024

path is something like below

node_modules/semantic-ui-css/semantic.min.css

from substrate-front-end-template.

muddlebee avatar muddlebee commented on June 30, 2024

@MaEdAlpha thank you so much.. Actually found the line. there were 4 occurences for the same matching string :)

from substrate-front-end-template.

MaEdAlpha avatar MaEdAlpha commented on June 30, 2024

@muddlebee cheers man, glad you found it. have a good one!

from substrate-front-end-template.

muddlebee avatar muddlebee commented on June 30, 2024

@jimmychu0807 do you have a permanent fix for this in mind??
or @MaEdAlpha ??

because this will be a recurring issue for forthcoming newbies as well... maybe mention in the DOC?

from substrate-front-end-template.

MaEdAlpha avatar MaEdAlpha commented on June 30, 2024

From what I found on the www it's a typo from the semantic package....I didn't look to much into it, but might be worth mentioning in the docs for sure. @jimmychu0807 i've never made a PR. Is it worth mentioning in the front-end-template docs?

from substrate-front-end-template.

muddlebee avatar muddlebee commented on June 30, 2024

I think the semantic-ui-css version mentioned here https://github.com/substrate-developer-hub/substrate-front-end-template/blob/main/package.json#L43 also works.

I deleted everything and tried re-installing through yarn install. it seems to work. I tried this on a different OS. Ubuntu WSL..

🤔 strange behaviour..

from substrate-front-end-template.

nuke-web3 avatar nuke-web3 commented on June 30, 2024

Sometimes you get issues like this in my experience that as you found a clean are fresh install from scratch solves. I don't think it's specific to this project, but a node/yarn issue. Please lmk if this needs action in this codebase

from substrate-front-end-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.