Skip to content

Instantly share code, notes, and snippets.

View muditchoudhary's full-sized avatar
🐢
Learning

Mudit Choudhary muditchoudhary

🐢
Learning
View GitHub Profile
@muditchoudhary
muditchoudhary / jest-test.sh
Created June 4, 2024 12:15
KDS lint and jest error
yarn test
yarn run v1.22.19
warning ../package.json: No license field
$ jest --config=jest.conf/index.js
FAIL lib/tabs/__tests__/KTabs.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
@muditchoudhary
muditchoudhary / playground.vue
Created June 4, 2024 11:33
Playground.vue code
<template>
<div style="padding: 24px">
<button>Before</button>
<div style="border: 2px solid orangered;">
<KRadioButtonGroup>
<KRadioButton
v-model="exampleValue"
label="Option A"
buttonValue="val-a"
@muditchoudhary
muditchoudhary / le_utils.constants.format_presets.sh
Last active October 29, 2023 14:17
`yarn run devserver-hot` gives error: `AttributeError: module 'le_utils.constants.format_presets' has no attribute 'IMSCP_ZIP'`
(kolibri-py3.9) mudit@mudit-desktop:~/kolibri$ yarn run devserver-hot
yarn run v1.22.19
$ concurrently --passthrough-arguments --kill-others "yarn:watch-hot --watchonly {1}" yarn:python-devserver yarn:hashi-dev --
$ yarn run watch --hot --watchonly
$ kolibri start --debug --foreground --port=8000 --settings=kolibri.deployment.default.settings.dev
$ yarn workspace hashi run dev
$ kolibri-tools build dev --file ./build_tools/build_plugins.txt --cache --hot --watchonly
$ yarn run build-base --mode=development --watch
[python-devserver] DEBUG 2023-10-29 19:36:00,264 Loading kolibri plugin registry...
$ webpack --config ./webpack.config.js --mode=development --watch
@muditchoudhary
muditchoudhary / le_utils.uuidv5_module.missing
Created September 13, 2023 08:37
Error logs 1. when trying to run yarn run devserver-hot core,coach and when try to run 2. pip install -r requirements.txt --upgrade
yarn run v1.22.19
$ concurrently --passthrough-arguments --kill-others "yarn:watch-hot --watchonly {1}" yarn:python-devserver yarn:hashi-dev -- core,coach
$ yarn run watch --hot --watchonly core,coach
$ yarn workspace hashi run dev
$ kolibri start --debug --foreground --port=8000 --settings=kolibri.deployment.default.settings.dev
$ kolibri-tools build dev --file ./build_tools/build_plugins.txt --cache --hot --watchonly core,coach
$ yarn run build-base --mode=development --watch
$ webpack --config ./webpack.config.js --mode=development --watch
[python-devserver] DEBUG 2023-09-13 14:04:36,726 Loading kolibri plugin registry...
[python-devserver] DEBUG 2023-09-13 14:04:36,745 Loaded kolibri plugin: kolibri.plugins.html5_viewer
Filesystem Size Used Avail Use% Mounted on
udev 2.9G 0 2.9G 0% /dev
tmpfs 586M 2.0M 584M 1% /run
/dev/sda6 46G 22G 22G 51% /
tmpfs 2.9G 125M 2.8G 5% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
/dev/loop0 128K 128K 0 100% /snap/bare/5
/dev/loop1 264M 264M 0 100% /snap/brave/174
/dev/loop2 224M 224M 0 100% /snap/code/105