Describe the bug
Crash when using setInlineStyle() on a QDialog.
To Reproduce
Steps to reproduce the behavior:
1)
const dialogPopupConfirmationSuppressionTag = new QDialog();
dialogPopupConfirmationSuppressionTag.setInlineStyle(`
background-color: gold;
border: 1px solid #cccccc;
border-radius: 4px;
`);
- Execute the code => crash
Expected behavior
No crash ?
Screenshots
webpack://projet-musique-jdr/./node_modules/@nodegui/nodegui/dist/lib/core/Style/StyleSheet.js?:29
cssId = cuid2_1.default.createId();
^
TypeError: Cannot read properties of undefined (reading 'createId')
at prepareInlineStyleSheet (webpack://projet-musique-jdr/./node_modules/@nodegui/nodegui/dist/lib/core/Style/StyleSheet.js?:29:33)
at QDialog.setInlineStyle (webpack://projet-musique-jdr/./node_modules/@nodegui/nodegui/dist/lib/QtWidgets/QWidget.js?:398:76)
at QDialog.memoized [as setInlineStyle] (webpack://projet-musique-jdr/./node_modules/memoize-one/dist/memoize-one.esm.js?:44:31)
at eval (webpack://projet-musique-jdr/./index.js?:695:40)
at ./index.js (C:\Users\Lancer\Documents\FoundryVTT\projet-musique-jdr\dist\index.js:4751:1)
at __webpack_require__ (C:\Users\Lancer\Documents\FoundryVTT\projet-musique-jdr\dist\index.js:5648:42)
at C:\Users\Lancer\Documents\FoundryVTT\projet-musique-jdr\dist\index.js:5742:37
at Object.<anonymous> (C:\Users\Lancer\Documents\FoundryVTT\projet-musique-jdr\dist\index.js:5744:12)
at Module._compile (node:internal/modules/cjs/loader:1761:14)
at Object..js (node:internal/modules/cjs/loader:1893:10)
Node.js v24.12.0
QThreadStorage: entry 1 destroyed before end of thread 0x25cc2868b30QThreadStorage: entry 0 destroyed before end of thread 0x25cc2868b30
Desktop (please complete the following information):
- OS: W10
- NodeGUI version 0.74.2
Additional context
I never had this problem with the exact same code on version 0.74.0 of NodeGUI
Describe the bug
Crash when using setInlineStyle() on a QDialog.
To Reproduce
Steps to reproduce the behavior:
1)
Expected behavior
No crash ?
Screenshots
Desktop (please complete the following information):
Additional context
I never had this problem with the exact same code on version 0.74.0 of NodeGUI