We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在angular项目的环境配置的时候,使用require引入其他文件报此错误。
require
export const environment = Object.assign({}, require('./common.json'), require('./production.json'), { production: true, envName: 'prod' });
这是因为在typescript2.x中,我们还需要做:
typescript
npm install @types/node --save-dev
tsconfig.app.json
{ "compilerOptions": { "types": ["node"] } }
再次运行即可。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在angular项目的环境配置的时候,使用
require
引入其他文件报此错误。这是因为在
typescript
2.x中,我们还需要做:require
的包tsconfig.app.json
中配置这个包为全局的再次运行即可。
The text was updated successfully, but these errors were encountered: