我通过mssql
安装了@types/mssql
和npm
,并将我的systemjs.config
更改为:
System.config({
paths: {
// alias
'npm:': 'node_modules/',
},
map: {
app: 'app',
...
'mssql': 'npm:mssql'
},
packages: {
app: {
main: './main.js',
defaultExtension: 'js'
},
...
mssql: {
main: 'index.js',
defaultExtension: 'js'
}
}
});
当我添加像
这样的导入语句时import * as mssql from "mssql"
我收到以下错误:
"http://localhost:3000/util" Failed to load resource: the server responded with a status of 404 (Not Found)
"http://localhost:3000/promise" Failed to load resource: the server responded with a status of 404 (Not Found)
"http://localhost:3000/fs" Failed to load resource: the server responded with a status of 404 (Not Found)
"http://localhost:3000/events" Failed to load resource: the server responded with a status of 404 (Not Found)
"http://localhost:3000/url" Failed to load resource: the server responded with a status of 404 (Not Found)
"http://localhost:3000/querystring" Failed to load resource: the server responded with a status of 404 (Not Found)
我做错了什么?