EasyUI Forum
October 13, 2024, 06:58:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error after build that I don't know how to proceed  (Read 6777 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« on: February 03, 2021, 11:44:22 AM »

I'm using create-react-app if that matters.

I'm only getting this error after I build the project

Code:
react_devtools_backend.js:2430 SyntaxError: Unexpected token u in JSON at position 3
    at JSON.parse (<anonymous>)
    at c (rc-easyui-min.js:10)
    at t.value (rc-easyui-min.js:10)
    at rc-easyui-min.js:10
    at Array.forEach (<anonymous>)
    at t.value (rc-easyui-min.js:10)
    at t.value (rc-easyui-min.js:10)
    at os (react-dom.production.min.js:212)
    at du (react-dom.production.min.js:255)
    at t.unstable_runWithPriority (scheduler.production.min.js:19)

I assume it's something in my data from my api server, but I'm just not finding anything.  Pointing a dev instance at the production api server does not give any errors.

how can figure out exactly what it's having an issue with?
Logged
chrwei
Full Member
***
Posts: 219


View Profile Email
« Reply #1 on: February 05, 2021, 02:43:17 PM »

finally got it, it was my form dynamic rules.

I was ending up with a form rule like ["required", "length[5,undefined]"].  entirely my fault, but very hard to debug.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!