Author Topic: react build  (Read 140 times)

bin3852

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 1
    • View Profile
react build
« on: July 09, 2024, 12:47:36 pm »
I download paramquery-9.1.1 in homepage and follow https://paramquery.com/pro/tutorial#topic-npm to add paramquery in my react project.

and it is working well when in my develop environment (npm run start)

but it isn't working when build. (npm run build) It doesn't build, it fails like this.

Please help me.

this is my package.json
"@types/jquery": ">=2.2.1",
"@types/jqueryui": ">=1.12.1",
"jquery": ">=2.2.1",
"jquery-ui-pack": "^1.12.3",
"jszip": "2.5.0",
"pqgrid": "file:./src/static/paramquery-9.1.1",

[eslint]
src/static/paramquery-9.1.1/pqgrid.min.js
  Line 10:1:      Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 78:13:     Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 100:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 129:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 140:13:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 144:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 150:9:     Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 155:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 186:13:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 215:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 252:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 321:15:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 342:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 386:9:     Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 456:9:     Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 500:15:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 520:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 548:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 551:9:     Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 562:5:     Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 566:7:     Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 600:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 611:19:    Expected an assignment or function call and instead saw an expression  no-unused-expressions
  Line 622:11:    Expected an assignment or function call and instead saw an expression  no-unused-expressions

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: react build
« Reply #1 on: July 09, 2024, 02:52:27 pm »
Please add this at the top of pqgrid.min.js file.

Code: [Select]
/* eslint-disable */