question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot set property 'fileName' of undefined

See original GitHub issue

Cannot 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.

1559749197535.zip

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

4reactions
w-biggscommented, Jul 17, 2019

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.

1reaction
FDiskascommented, Mar 19, 2020

bot added the Stale label

giphy

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found