Open yiren opened 7 years ago
Thanks for the report @yiren ! It should be fixed in next release https://github.com/FountainJS/generator-fountain-angular2/pull/92.
Is it fixed? I just try this with latest tutorial and have same issue.
@Kravs @yiren Next version has been released, can you confirm it fixes your problem ?
Hi, I tried to join slack channel, but the channel was full. I just used the fountain-webapp generator to create angular1-typescript+webpack+todoMVC. With all dependencies installed correct and all typings installed. When I run 'npm run serve,' I got the error message "ERROR in ./src/app/constants/VisibilityFilters.ts (14,22): error TS2322: Type '{ filter: (todo: Todo) => boolean; type: string; }' is not assignable to type >'Function'.
Please give me some advice/help. Thanks.
Error Message & Stack Trace
[23:19:03] Loading D:\Git_Source\yo-angular1\gulp_tasks\browsersync.js [23:19:03] Loading D:\Git_Source\yo-angular1\gulp_tasks\karma.js [23:19:04] Loading D:\Git_Source\yo-angular1\gulp_tasks\misc.js [23:19:04] Loading D:\Git_Source\yo-angular1\gulp_tasks\webpack.js [23:19:05] Using gulpfile D:\Git_Source\yo-angular1\gulpfile.js [23:19:05] Starting 'serve'... [23:19:05] Starting 'webpack:watch'... ts-loader: Using typescript@2.0.3 and D:\Git_Source\yo-angular1\tsconfig.json [23:19:11] Time: 6335ms Asset Size Chunks Chunk Names index.js 1.57 MB 0 main index.js.map 1.89 MB 0 main
Copy the content from
.yo-rc.json
:Environment
node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
-Node.js v6.7.0 -win32 10.0.14393 yo --version -1.8.5 npm --version -3.10.3