[Pkg-javascript-devel] packaging and debuging of the javascript part of ipywidgets

picca picca at debian.org
Mon Dec 23 17:35:17 GMT 2024


>  There is no postcss-cssnext package in debian.

ok -> something to add in Debian :))

without the cssnext, I have these errors now

It is not clear to my what is going one.

node-jquery is installed

thanks for your help

Fred.


> @jupyter-widgets/html-manager at 1.0.13 build:src
> tsc --build

src/output.ts:12:15 - error TS2307: Cannot find module 'jquery' or its 
corresponding type declarations.

12 import $ from 'jquery';
                  ~~~~~~~~

src/htmlmanager.ts:4:31 - error TS2307: Cannot find module 'semver' or 
its corresponding type declarations.

4 import { maxSatisfying } from 'semver';
                                 ~~~~~~~~

src/htmlmanager.ts:8:29 - error TS2307: Cannot find module 
'@lumino/messaging' or its corresponding type declarations.

8 import { MessageLoop } from '@lumino/messaging';
                               ~~~~~~~~~~~~~~~~~~~

src/htmlmanager.ts:14:8 - error TS2307: Cannot find module 
'@jupyterlab/rendermime' or its corresponding type declarations.

14 } from '@jupyterlab/rendermime';
           ~~~~~~~~~~~~~~~~~~~~~~~~

src/htmlmanager.ts:32:26 - error TS7006: Parameter 'options' implicitly 
has an 'any' type.

32         createRenderer: (options) => new WidgetRenderer(options, 
this),
                             ~~~~~~~

src/htmlmanager.ts:127:19 - error TS2580: Cannot find name 'require'. Do 
you need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

127           resolve(require('@jupyter-widgets/base7'));
                       ~~~~~~~

src/htmlmanager.ts:130:19 - error TS2580: Cannot find name 'require'. Do 
you need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

130           resolve(require('@jupyter-widgets/base'));
                       ~~~~~~~

src/htmlmanager.ts:137:11 - error TS2580: Cannot find name 'require'. Do 
you need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

137           
require('@jupyter-widgets/controls7/css/widgets-base.css');
               ~~~~~~~

src/htmlmanager.ts:145:13 - error TS2580: Cannot find name 'require'. Do 
you need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

145             
require('@jupyter-widgets/controls7/css/labvariables.css');
                 ~~~~~~~

src/htmlmanager.ts:147:19 - error TS2580: Cannot find name 'require'. Do 
you need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

147           resolve(require('@jupyter-widgets/controls7'));
                       ~~~~~~~

src/htmlmanager.ts:150:11 - error TS2580: Cannot find name 'require'. Do 
you need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

150           require('@jupyter-widgets/controls/css/widgets-base.css');
               ~~~~~~~

src/htmlmanager.ts:158:13 - error TS2580: Cannot find name 'require'. Do 
you need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

158             
require('@jupyter-widgets/controls/css/labvariables.css');
                 ~~~~~~~

src/htmlmanager.ts:161:19 - error TS2580: Cannot find name 'require'. Do 
you need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

161           resolve(require('@jupyter-widgets/controls'));
                       ~~~~~~~

src/libembed.ts:20:17 - error TS2307: Cannot find module 'ajv' or its 
corresponding type declarations.

20 import Ajv from 'ajv';
                    ~~~~~

src/libembed.ts:22:29 - error TS2580: Cannot find name 'require'. Do you 
need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

22 const widget_state_schema = 
require('@jupyter-widgets/schema').v2.state;
                                ~~~~~~~

src/libembed.ts:23:28 - error TS2580: Cannot find name 'require'. Do you 
need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

23 const widget_view_schema = 
require('@jupyter-widgets/schema').v2.view;
                               ~~~~~~~

src/index.ts:7:24 - error TS2580: Cannot find name 'require'. Do you 
need to install type definitions for node? Try `npm i --save-dev 
@types/node`.

7 export const version = require('../package.json').version;
                          ~~~~~~~


Found 17 errors.



More information about the Pkg-javascript-devel mailing list