-
Couldn't load subscription status.
- Fork 29.7k
Description
What version of Next.js are you using?
10.0.3
What version of Node.js are you using?
v12.20.1
What browser are you using?
Chrome
What operating system are you using?
Linux:Ubuntu
How are you deploying your application?
Ubuntu/Docker
Describe the Bug
When there's an error next js shows wrong line/file almost every time? is this normal behaviour?
Expected Behavior
Shows the correct file and the line number
To Reproduce
Create a next js application, throw an unhandled error related to the template.
ex: try to use an object as a component in a template:
import React from 'react';
const Test = () => (
<div>
{{ test: 'test' }}
</div>
);
export default Test;
as per the above image, there is no attribute called type on pointed location, or the file. this very hard to debug.

