Error enoent no such file or directory template error

I drop a component from my project
I have this error:
error enoent no such file or directory “componentName.ts” template error
how i can resolve this problem ?

Create a componentName.ts file.

What is the code that is not working?

I regenerate the component. the error is still there.
"Unhandled Promise rejection: Failed to load component-name.html"
template error,
“C:…\component-name.html”: Error:
ENOENT: no such file or directory, open

Now you seem to be missing the component-name.html file.

the component-name.html exist .

Perhaps it’s in the wrong directory or you have a case mismatch or something, because node isn’t going to just lie about a file not existing in order to annoy you.

1 Like