monocart-reporter: Report not loading ( undefined (reading 'Util'))
Wanted to try out the code coverage stuff, but can’t even get the basic report to load.
Uncaught TypeError: Cannot read properties of undefined (reading ‘Util’) at (index):48:14656 at (index):48:15400 at (index):48:15406 at (index):48:282 at (index):48:297
;const k={...y.Util,...T(),isTouchDevice:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},A=()=>{const e=document.querySelector('link[rel="icon"
reporter: [
['list'],
['monocart-reporter', {
name: "Monocart Test Report",
outputFile: './test/report/index.html'
}],
],
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 18 (6 by maintainers)
I found it’s a
pnpm
issue, see stackoverflow I don’t know why pnpm need this , but theturbogrid
will be installed after using following CLI@azamat-sharapov @jefbarn @debasisj I guess you are using
pnpm
, please have a try.@cenfun Thanks for looking. I think the problem is anyone using ‘non-standard’ node_modules layout is going run into. Instead of linking to the version of turbogrid that is under this module in the dependency tree, it’s trying to link to the root node_modules…which doesn’t have turbogrid (because turbogrid isn’t a direct dependency of my project).
I’m guessing that it’s just one too many “…/…/…/” levels in the import statement somewhere.