Skip to content
New issue

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

packages设置后cannot find module #21

Open
Reboca opened this issue Sep 8, 2017 · 0 comments
Open

packages设置后cannot find module #21

Reboca opened this issue Sep 8, 2017 · 0 comments

Comments

@Reboca
Copy link

Reboca commented Sep 8, 2017

1504860263806
在fis配置中添加了如下fis.hook('commonjs', {
baseUrl: './app',
extList: ['.js', '.ts'],
packages: [
{
name:'@angular/animations',
location:'../node_modules/@angular/animations',
main: 'bundles/animations.umd.js'
},
{
name:'@angular/animations/browser',
location:'../node_modules/@angular/animations',
main: 'bundles/animations-browser.umd.js'
},
{
name:'@angular/platform-browser',
location:'../node_modules/@angular/platform-browser',
main: 'bundles/platform-browser.umd.js'
},
{
name:'@angular/platform-browser/animations',
location:'../node_modules/@angular/platform-browser',
main: 'bundles/platform-browser-animations.umd.js'
},
{
name:'@angular/platform-browser-dynamic',
location:'../node_modules/@angular/platform-browser-dynamic',
main: 'bundles/platform-browser-dynamic.umd.js'
}
],
});
最终在打包时MODJS报错Cannot find module @angular/platform-browser/animations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant