<div id="geary-body" dir="auto"><div><br></div></div><div id="geary-quote" dir="auto"><br>On Sat, Oct 5, 2019 at 13:28, Pirate Praveen <praveen@onenetbeyond.org> wrote:<br><blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">On Sun, 07 Jul 2019 16:21:14 -0300 Jonas Smedegaard <<a href="mailto:dr@jones.dk">dr@jones.dk</a>> wrote:
<blockquote> Please update to upstream release 0.61.0 or newer, as this is needed by
 node-terser.
</blockquote>
I'm trying to update to 0.68.2 in master-0.68 branch,

<a href="https://salsa.debian.org/js-team/node-rollup/commits/master-0.68">https://salsa.debian.org/js-team/node-rollup/commits/master-0.68</a>

tsc command fails with this error,

src/rollup/index.ts:326:11 - error TS2322: Type
'import("/usr/share/nodejs/magic-string/index").SourceMap' is not
assignable to type
'import("/home/pravi/forge/debian/git/js-team/node-rollup/src/rollup/types").SourceMap'.
  Types of property 'version' are incompatible.
    Type 'number' is not assignable to type 'string'.

326                                                                     outputChunk.map = rendered.map;
                                                                        ~~~~~~~~~~~~~~~


Found 2 errors.
<br></div></blockquote><span style="white-space: pre-wrap;"><br></span><div><span style="white-space: pre-wrap;">I fixed this error with the following patch, it'd be good if someone can confirm this is okay.</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;">--- a/src/rollup/index.ts
+++ b/src/rollup/index.ts
@@ -323,7 +323,7 @@
                                                                        const outputChunk = <OutputChunk>outputBundle[chunk.id];
                                                                        return chunk.render(outputOptions, addons, outputChunk).then(rendered => {
                                                                                outputChunk.code = rendered.code;
-                                                                               outputChunk.map = rendered.map;
+                                                                               outputChunk.map = <any>rendered.map;
 
                                                                                return graph.pluginDriver.hookParallel('ongenerate', [
                                                                                        { bundle: outputChunk, ...outputOptions },
</span></div><div><span style="white-space: pre-wrap;"><br></span></div></div>