Questions tagged [tsify]

Browserify plugin for compiling TypeScript

tsify is a node.js Browserify plugin for compiling TypeScript. Here you can find the official GitHub and npm pages.

37 questions
0
votes
1 answer

babelify transform not running

I'm having trouble getting babelify to run on my code. I've got two typescript files: script1.ts import Greeter from './script2'; const greeter = new Greeter('Hello, world!'); document.body.innerHTML = greeter.greet(); script2.ts class Greeter { …
Brad Zacher
  • 2,915
  • 18
  • 31
0
votes
1 answer

Typescript generic function and indexed argument

I have following package.json: { "name": "browserify-test", "version": "1.0.0", "description": "", "main": "dist/index.js", "typings": "dist/index.d.ts", "scripts": { "build:tsc": "tsc --outDir dist", …
Adam Szmyd
  • 2,765
  • 2
  • 24
  • 32
0
votes
2 answers

this._nativeError is undefined when I bundle my angular 2 application

I am using gulp, browserify and tsify to bundle my application and I am pointing browserify to the main.ts file. That is all I am doing to bundle the app. But when I try to run the index.html file which has the bundled js file imported, I get the…
0
votes
0 answers

Unable to Add a TypeScript service to an Angular 1.X application

I have created a TypeScript service named hello-world.ts in my Angular 1.X application. It looks like this: export default class HelloWorld { hello() { console.log("hello world"); } } I am importing it using the following: import HelloWorld…
jkndrkn
  • 4,012
  • 4
  • 36
  • 41
0
votes
1 answer

Enable "Experimental support for decorators" with "tsify" in karma

I'm using tsify, a plugin for browserify, to transpile my code during karma unit tests. I get this sort of erro when I run my tests: TypeScript error: src/app/emailLogin/emailLogin.component.ts(14,14): Error TS1219: Experimental support for…
Nathan Cooper
  • 6,262
  • 4
  • 36
  • 75
0
votes
1 answer

Using proxyquire in a browserify factor bundle

Stuck with this one. I am using laravel elxir with tsify to generate my js. I run the typescript through factor-bundle to split common js modules into a seperate files. I don't think though that will be a problem in this case because everything is…
Simon
  • 2,484
  • 6
  • 35
  • 54
0
votes
1 answer

Mixing javascript and typescript in gulp browserify

I have nice gulp browserify workflows for javascript and now typescript. These combine the source files with modules and generates a single .js file for use in the browser. However, having an older javascript project I now wanted to introduce new…
Jørgen Tvedt
  • 1,214
  • 3
  • 12
  • 23
1 2
3