Mark Gregory pro asked 6 years ago


Hello, I am getting a build error coming back as "Cannot read property 'length' of undefined" I have narrowed it down to the following code in the css file in the intro section.  Everything works fine in dev.
#apppage.gradient {
background: -moz-linear-gradient(45deg, rgba(0, 0, 0, 1), rgba(75, 75, 75, 0.8) 100%);
background: -webkit-linear-gradient(45deg,rgba(0, 0, 0, 1), rgba(75, 75, 75, 0.8) 100%);
background: -webkit-gradient(linear, 45deg, from(rgba(0, 0, 0, 1)), to(rgba(75, 75, 75, 0.8) ));
background: -o-linear-gradient(45deg, rgba(0, 0, 0, 1), rgba(75, 75, 75, 0.8) 100%);
background: linear-gradient(to45deg, rgba(0, 0, 0, 1), rgba(75, 75, 75, 0.8) 100%);
}
Here is the log output.  It really did not give me any direction to go...
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using npm@6.4.1
3 info using node@v10.12.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle ezladpro@0.1.0~prebuild: ezladpro@0.1.0
6 info lifecycle ezladpro@0.1.0~build: ezladpro@0.1.0
7 verbose lifecycle ezladpro@0.1.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle ezladpro@0.1.0~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/markgregory/Development/ezladpro/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle ezladpro@0.1.0~build: CWD: /home/markgregory/Development/ezladpro
10 silly lifecycle ezladpro@0.1.0~build: Args: [ '-c', 'react-scripts build' ]
11 silly lifecycle ezladpro@0.1.0~build: Returned: code: 1  signal: null
12 info lifecycle ezladpro@0.1.0~build: Failed to exec build script
13 verbose stack Error: ezladpro@0.1.0 build: `react-scripts build`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:962:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid ezladpro@0.1.0
15 verbose cwd /home/markgregory/Development/ezladpro
16 verbose Linux 4.16.3-301.fc28.x86_64
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v10.12.0
19 verbose npm  v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error ezladpro@0.1.0 build: `react-scripts build`
22 error Exit status 1
23 error Failed at the ezladpro@0.1.0 build script.
23 error This is probably not a pr



 

Jakub Mandra staff answered 6 years ago


Hi, There is a typo in css. "to45deg" in this line:
background: linear-gradient(to45deg, rgba(0, 0, 0, 1), rgba(75, 75, 75, 0.8) 100%);
I assume that is your custom code?   Best, Jakub

Mark Gregory pro commented 6 years ago

strange on the copy and paste, it removed the space on that...

Mark Gregory pro commented 6 years ago

not sure if going from free to pro may cause it not to build correctly since its a PRO feature.

Mark Gregory pro commented 6 years ago

I think it may be related to this: https://mdbootstrap.com/support/jquery/cannot-read-property-length-of-undefined/ as it is having issues with the same CSS markup it appears.

Mark Gregory pro commented 6 years ago

Yup, it now compiles correctly, I just copied and pasted from "https://mdbootstrap.com/react/sections/intros/" may want to adjust the page, thanks!


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.7.1
  • Device: PC
  • Browser: Chrom
  • OS: Fedora
  • Provided sample code: Yes
  • Provided link: No