[Pkg-javascript-devel] Bug#942302: Bug#942302: Processed: Update node-rollup-pluginutils to 2.6.0 or later

Pirate Praveen praveen at onenetbeyond.org
Mon Oct 14 11:05:12 BST 2019



On Mon, Oct 14, 2019 at 15:27, Pirate Praveen 
<praveen at onenetbeyond.org> wrote:
> Just tried debian/nodejs/extlinks (and --with nodejs) instead of 
> patching rollup.config.js, but it fails the same way.
> 
>    dh_auto_configure --buildsystem=nodejs
> 	mkdir node_modules
> 	ln -s /usr/share/nodejs/micromatch ./node_modules/
>    debian/rules override_dh_auto_build
> make[1]: Entering directory 
> '/home/pravi/forge/debian/git/js-team/node-rollup-pluginutils'
> rollup -c
> 
> src/index.ts → dist/pluginutils.cjs.js, dist/pluginutils.es.js...
> [!] Error: 'default' is not exported by 
> ../../../../../../../usr/share/nodejs/micromatch/index.js
> <https://rollupjs.org/guide/en#error-name-is-not-exported-by-module->
> src/createFilter.ts (1:7)
> 1: import mm from 'micromatch';
>           ^
> 2: import { resolve, sep } from 'path';
> 3: import { CreateFilter } from './pluginutils';
> Error: 'default' is not exported by 
> ../../../../../../../usr/share/nodejs/micromatch/index.js
> 

Create test.mjs and test.ts with the following content,

import mm from 'micromatch';
console.log(mm);

With nodejs from experimental,

 node --experimental-modules ./test.mjs
(node:7711) ExperimentalWarning: The ESM module loader is experimental.
[Function: micromatch] {
  match: [Circular],
  matcher: [Function],
  isMatch: [Function],
  any: [Function],
  not: [Function],
  contains: [Function],
  matchKeys: [Function],
  some: [Function],
  every: [Function],
  all: [Function],
  capture: [Function],
  makeRe: [Function],
  scan: [Function],
  parse: [Function],
  braces: [Function],
  braceExpand: [Function]
}

$ tsc test.ts
$ node test.js
undefined

But tsc --esModuleInterop test.ts works as expected.

Even though tsconfig.json has
"esModuleInterop": true

I think rollup-plugin-typescript is not reading it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20191014/c20034d1/attachment.html>


More information about the Pkg-javascript-devel mailing list