Cannot set property 'fileName' of undefined
See original GitHub issueCannot set property 'fileName' of undefined
Console logs:
Server running at http://localhost:37557 - configured port 1234 could not be used.
⠙ Building landing.html...addDependencyTo is deprecated in favor of
result.messages.dependency; posthtml-loader >= v1.0.1 will
automatically add your imported files to webpack's file watcher.
addDependencyTo is deprecated in favor of
result.messages.dependency; posthtml-loader >= v1.0.1 will
automatically add your imported files to webpack's file watcher.
🚨 /src/pages/landing.html: Cannot set property 'fileName' of undefined
at Pipeline.process (/node_modules/parcel-bundler/src/Pipeline.js:30:22)
addDependencyTo is deprecated in favor of
result.messages.dependency; posthtml-loader >= v1.0.1 will
automatically add your imported files to webpack's file watcher.
addDependencyTo is deprecated in favor of
result.messages.dependency; posthtml-loader >= v1.0.1 will
automatically add your imported files to webpack's file watcher.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
TypeError: Cannot read property 'filename' of undefined--multer
It looks like the error handling isn't right, during file saving in particular; in which the resulting errors are not being handled.
Read more >TypeError: Cannot read property 'filename' of undefined in ES ...
As it turns out, the problem is that you are using ES Modules in Node 14+ and using import to load a CommonJS...
Read more >Multer TypeError: Cannot read property 'filename' of undefined
I'll list the files and their code below. Here, I imported my schema from gamemodel.
Read more >Cannot read property 'filename' of undefined " while using ...
[Solved]-"TypeError: Cannot read property 'filename' of undefined " while using multer to upload user profile photo-node.js.
Read more >cannot read properties of undefined (reading 'filename') multer
It means the file is not parsed, which means the request is not correct. Change data property to include only formData , no...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is happening for me whenever there’s any error in the pipeline, such as a posthtml error; Parcel tries to report the error, but there’s an error in the error reporting function itself.
https://github.com/parcel-bundler/parcel/blob/96119be782d9d551f73b77e06ab25067c7073344/packages/core/parcel-bundler/src/Pipeline.js#L30
This is making debugging issues a major pain; I’m having to manually add
console.error(err)
before the erroring line in Pipeline.js order to get a sense of what the error actually is.