Giter Site home page Giter Site logo

Comments (4)

jrieken avatar jrieken commented on June 6, 2024

What version of the typescript compiler do you use when you compile manually, and in which files are the errors reported?

from gulp-tsb.

jrieken avatar jrieken commented on June 6, 2024

@klynch67 - wrong issue?

from gulp-tsb.

seanzer avatar seanzer commented on June 6, 2024

@jrieken Sorry, I take that back. I reduced the issue down to just 2 ts files and tsc does report the same errors. What I have is
A.ts:

/// <reference path='typings/github-electron/github-electron-main.d.ts' />
import foo = require('ipc');
console.log(foo.on);

B.ts:

/// <reference path='typings/github-electron/github-electron-renderer.d.ts' />
import foo = require('ipc');
console.log(foo.send);

When you try to compile those two files, the errors are reported in the d.ts files:

typings/github-electron/github-electron-main.d.ts(229,2): error TS2300: Duplicate identifier 'export='.
typings/github-electron/github-electron-renderer.d.ts(99,2): error TS2300: Duplicate identifier 'export='.

We used tsd to get the d.ts files from the DefinitelyTyped repo. I would have expected the reference path comments to be honored in this case. But it appears we need to do a two pass compile? I wonder if the TypeScript team is aware of this type of scenario..

from gulp-tsb.

seanzer avatar seanzer commented on June 6, 2024

electron has renamed ipc and updated the d.ts files. I don't think this issue is in gulp-tsb.

from gulp-tsb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.