Public
Edited
Sep 6, 2023
Insert cell
Insert cell
// try uncomment each require turn by turn and reload the page
// search Console » Sources for "fraction"
// examine package.json.version and fraction.cjs

// Fraction = require("fraction.js@4") // unable to load module;
// package.json shows 4.3.6
// fraction.js shows 4.3.5

Fraction = require("fraction.js@4.0") // works fine
// package.json shows 4.0.14
// fraction.js shows 4.0.14

// Fraction = require("fraction.js") // unable to load module;
// package.json shows 4.3.6
// fraction.cjs shows 4.3.5 (31/08/2023)?!

// Fraction = require("fraction.js@4.3") // unable to load module;
// package.json shows 4.3.6
// fraction.cjs shows 4.3.5 (31/08/2023)

// Fraction = require("fraction.js@4.3.6") // unable to load module;
// package.json shows 4.3.6
// fraction.cjs shows 4.3.5 (31/08/2023)
Insert cell
// require("fraction.js")
// console: Refused to execute https://cdn.observableusercontent.com/npm/fraction.js@4.3.6/fraction.cjs as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.
Insert cell
// Failed to load resource: The network connection was lost.
// [Error] Failed to load resource: The network connection was lost. (collect, line 0)
// require("fraction.js@4.3.6")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more