Skip to content

Instantly share code, notes, and snippets.

@afmorris
Created December 28, 2017 22:49
Show Gist options
  • Save afmorris/0d464e8d539ed94138b4cd5c353cb5fa to your computer and use it in GitHub Desktop.
Save afmorris/0d464e8d539ed94138b4cd5c353cb5fa to your computer and use it in GitHub Desktop.
Cannot Load Module "@servicestack/client"
// This file is located in /src/js/app.ts
import { JsonServiceClient } from "@servicestack/client";
{
"name": "servicestack-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"@servicestack/client": "^1.0.0"
}
}
λ tsc
src/js/app.ts(1,35): error TS2307: Cannot find module '@servicestack/client'.
{
"include": [
"/src/js/**/*.ts"
],
"compilerOptions": {
"noImplicitAny": true,
"target": "es5",
"module": "amd",
"lib": [ "es2015", "dom" ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment