-
Notifications
You must be signed in to change notification settings - Fork 12k
Getting the error (Emitted value instead of an instance of Error) Cannot find source file 'compiler.es5.ts' after ejecting webpack.config.js #7115
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
Comments
This seems to be related to the "source-map-loader" where the exclude-statement via regex doesnt work properly... "module": {
"rules": [
{
"enforce": "pre",
"test": /\.js$/,
"loader": "source-map-loader",
"exclude": [
// instead of /\/node_modules\//
path.join(process.cwd(), 'node_modules')
]
}, Can you confirm this solves your problem? Will prepare an pull-request for this then... Seems related to #6870 |
@christianscharr Thanks, works perfect for me! 👍 |
I am still getting this error on
looking in the relevant folder I only see js files in there, there are no ts files... |
I'm also still getting this error. I'm using
In my case, it seems to be triggered by a font resource:
|
In my case, looks like the package ngx-quill has problems with its source maps so exclude the package instead of excluding the whole node_modules. |
I had the same problem with Reflect.ts. I solved with @christianscharr solution. |
eject functionality is no longer available in the latest version (6.x+). For custom webpack configurations the following unofficial add-on is a suggested solution: https://github.com/manfredsteyer/ngx-build-plus |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Uh oh!
There was an error while loading. Please reload this page.
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.2.1
node: 6.9.5
os: win32 x64
Repro steps.
The log given by the failure.
Desired functionality.
No errors
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: