aki2o / emacs-tss

Provide a interface for auto-complete.el/flymake.el on typescript-mode.
108 stars 17 forks source link

Can't import node module #30

Open jcubic opened 6 years ago

jcubic commented 6 years ago

So I have webpack drived project with this:

import * as $ from "jquery";
import "jquery.terminal";

$(function() {
    $('<div/>').appendTo('body').terminal(function(command: number) {

    });
});

but this give me error that it can't find jquery I have it installed and I have d.ts file in my root directory, I've also tried to install npm install --save-dev @types/jquery with no effect.

it should even work with import "jquery"; because d.ts file provide $ function.

I'm trying to get to the point where I get error about terminal function have number instead of string type, but I now have error that jquery cannot be found.

I have this tsconfig:

{
    "compilerOptions": {
        "lib": ["esnext", "dom"],
        "experimentalDecorators": true,
        "target": "es5",
        "moduleResolution": "Node",
        "allowJs": true
    }
}