Git Product home page Git Product logo

Comments (4)

EndlessJourney99 avatar EndlessJourney99 commented on May 26, 2024

Add these 2 lines to rules section in .eslintrc.json file in the frontend folder:
"import/order": "warn"
"react/no-unescaped-entities": "warn"

from taskcafe.

sitemapxml avatar sitemapxml commented on May 26, 2024

Hello, Thank you for the info.
Unfortunately, this didn't work as there is a new error.
I tried to build project again, but then this happened:

go run cmd/mage/main.go build
yarn run v1.22.19
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating

And after running npx browserslist@latest --update-db, this was the output:

npx browserslist@latest --update-db

/home/user/.npm/_npx/072487b38308305a/node_modules/browserslist/update-db.js:15
    throw new BrowserslistError(
    ^
Error [BrowserslistError]: Cannot find package.json. Is this the right directory to run `npx browserslist --update-db` in?
    at detectLockfile (/home/user/.npm/_npx/072487b38308305a/node_modules/browserslist/update-db.js:15:11)
    at updateDB (/home/user/.npm/_npx/072487b38308305a/node_modules/browserslist/update-db.js:263:14)
    at Object.<anonymous> (/home/user/.npm/_npx/072487b38308305a/node_modules/browserslist/cli.js:43:3)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  browserslist: true
}

@JordanKnott Can you take a look at this, please?

from taskcafe.

EndlessJourney99 avatar EndlessJourney99 commented on May 26, 2024

Are you pulling source code from the latest master branch? If that is the case, I recommend you to download the 0.3.2 release.
The latest master branch has lots of bugs. And unfortunately, I don't see any activity of maintainer during this year, so maybe it won't receive any update in the future.

  • And for the warning about browserslist, maybe you should cd to the frontend folder first then run the command npx browserslist@latest --update-db.

from taskcafe.

sitemapxml avatar sitemapxml commented on May 26, 2024

Hello, sorry for the delay.
You were right about both the browserslist, and about the master branch.
Browserslist update works only if you descend to frontend folder, and build process is working normally for 0.3.2 release.
However, I haven't tested the app fully, but I managed to build the binary file without errors, so I guess that it would be working with appropriate configuration file.

from taskcafe.

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.