Sublime Forum

Angular 2 build project

#1

###Hi everyone, I have a problem.

Now I’m working on project with the angular 2 framework. It uses webpack and, when saving files, it must recompile the project.

If I save the file on the path 'src/app/components/app.test.ts' everything is fine, webpack rebuilds the project and reloads the browser page.

If I’m save file on path like 'src/app/components/admins/tiktok/money/blabla/app.components.ts' it does not recompile and doesn’t reload the page.

That is, if you go to the depth of the directory it doesn’t work.
Works only at low levels.

I thought that the problem is in indexing, now I have this parameters

"binary_file_patterns": [".idea/**", "bower_components/**", "node_modules/**"],
"index_files": true,
"index_workers": 4,
"index_exclude_patterns": [".idea/*", "bower_components/*", "node_modules/*"]
p.s On the editor ‘blablaShtorm’ works fine

p.ss Sorry for my english, I’m just studying it

0 Likes

#2

How do you build the project? Do you use some third part package or a simple Sublime Build System? What are the contents of your Sublime Build System, if you use one or which one is your third part package to build Angular files?

0 Likes

#3

I updated my project to Angular 4, and my problem go away.
This probem was be in Angular CLI not in Sublime

1 Like