Build Errors During SageMathCell Installation on Ubuntu VPS

Post Reply
User avatar
Eli
Senior Expert Member
Reactions: 189
Posts: 5943
Joined: 10 years ago
Location: Tanzania
Contact:

#1

Hey everyone,

I'm running into some build errors while trying to install SageMathCell on my Ubuntu VPS. I've followed the official build instructions, but when I run ../sage/sage -sh -c make, I get the following JavaScript modules errors:

ERROR in ./js/interact_cell.js
Module not found: Error: Can't resolve 'base/js/events' in '/home/tssfl/sagecell/js'
@ ./js/session.js
@ ./js/cell.js
@ ./js/main.js

ERROR in ./js/session.js
Module not found: Error: Can't resolve 'base/js/events' in '/home/tssfl/sagecell/js'
@ ./js/cell.js
@ ./js/main.js

ERROR in ./js/session.js
Module not found: Error: Can't resolve 'base/js/namespace' in '/home/tssfl/sagecell/js'
@ ./js/cell.js
@ ./js/main.js

ERROR in ./js/session.js
Module not found: Error: Can't resolve 'services/kernels/kernel' in '/home/tssfl/sagecell/js'
@ ./js/cell.js
@ ./js/main.js

ERROR in ./js/utils.js
Module not found: Error: Can't resolve 'base/js/utils' in '/home/tssfl/sagecell/js'
@ ./js/cell.js
@ ./js/main.js

ERROR in ./js/widgets.js
Module not found: Error: Can't resolve 'mpl' in '/home/tssfl/sagecell/js'
@ ./js/session.js
@ ./js/cell.js
@ ./js/main.js

webpack 5.94.0 compiled with 6 errors in 42713 ms
make: *** [Makefile:42: static/embedded_sagecell.js] Error 1

I've tried a few things to fix the issue, like deleting package-lock.json and running npm install again, but I'm still getting the same errors.

I'm using Ubuntu VPS 24.04, Node.js version 18.19.1, npm version 9.2.0, and SageMath version 10.5.

Has anyone else encountered this issue? Any help would be greatly appreciated!

P.S. I previously got another error:

cp static/jsmol/JSmol.min.nojq.js build/vendor/JSmol.js
cp: cannot stat 'static/jsmol/JSmol.min.nojq.js': No such file or directory
make: *** [Makefile:26: build] Error 1

I resolved it by creating the /home/tssfl/sagecell/static/jsmol folder, downloading the JSmol.min.nojq.js file from https://chemapps.stolaf.edu/jmol/jsmol/ ... in.nojq.js into the static/jsmol folder, and re-running ../sage/sage -sh -c make. However, this led to the current errors I'm facing.

Thanks,
Eli
0
TSSFL -- A Creative Journey Towards Infinite Possibilities!
Post Reply

Return to “Web Programming”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests