Commit 6d9565e0 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

update snapshots

parent b94d36eb
...@@ -99,7 +99,11 @@ describe('ReactRefreshLogBox-builtins app', () => { ...@@ -99,7 +99,11 @@ describe('ReactRefreshLogBox-builtins app', () => {
"source": "./node_modules/my-package/index.js (1:1) "source": "./node_modules/my-package/index.js (1:1)
Module not found: Can't resolve 'dns' Module not found: Can't resolve 'dns'
> 1 | const dns = require('dns') > 1 | const dns = require('dns')
| ^", | ^
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./index.js
./app/page.js",
"stack": [], "stack": [],
} }
`) `)
...@@ -177,7 +181,10 @@ describe('ReactRefreshLogBox-builtins app', () => { ...@@ -177,7 +181,10 @@ describe('ReactRefreshLogBox-builtins app', () => {
"source": "./index.js (1:1) "source": "./index.js (1:1)
Module not found: Can't resolve 'b' Module not found: Can't resolve 'b'
> 1 | import Comp from 'b' > 1 | import Comp from 'b'
| ^", | ^
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./app/page.js",
"stack": [], "stack": [],
} }
`) `)
...@@ -253,7 +260,8 @@ describe('ReactRefreshLogBox-builtins app', () => { ...@@ -253,7 +260,8 @@ describe('ReactRefreshLogBox-builtins app', () => {
"source": "./app/page.js (2:1) "source": "./app/page.js (2:1)
Module not found: Can't resolve 'b' Module not found: Can't resolve 'b'
> 2 | import Comp from 'b' > 2 | import Comp from 'b'
| ^", | ^
https://nextjs.org/docs/messages/module-not-found",
"stack": [], "stack": [],
} }
`) `)
...@@ -325,7 +333,8 @@ describe('ReactRefreshLogBox-builtins app', () => { ...@@ -325,7 +333,8 @@ describe('ReactRefreshLogBox-builtins app', () => {
"source": "./app/page.js (2:1) "source": "./app/page.js (2:1)
Module not found: Can't resolve './non-existent.css' Module not found: Can't resolve './non-existent.css'
> 2 | import './non-existent.css' > 2 | import './non-existent.css'
| ^", | ^
https://nextjs.org/docs/messages/module-not-found",
"stack": [], "stack": [],
} }
`) `)
......
...@@ -497,7 +497,19 @@ describe('ReactRefreshLogBox app', () => { ...@@ -497,7 +497,19 @@ describe('ReactRefreshLogBox app', () => {
"source": "./index.module.css (1:8) "source": "./index.module.css (1:8)
Parsing CSS source code failed Parsing CSS source code failed
> 1 | .button > 1 | .button
| ^", | ^
Unexpected end of input
Import traces:
Client Component Browser:
./index.module.css [Client Component Browser]
./index.js [Client Component Browser]
./app/page.js [Client Component Browser]
./app/page.js [Server Component]
Client Component SSR:
./index.module.css [Client Component SSR]
./index.js [Client Component SSR]
./app/page.js [Client Component SSR]
./app/page.js [Server Component]",
"stack": [], "stack": [],
} }
`) `)
...@@ -1448,7 +1460,12 @@ describe('ReactRefreshLogBox app', () => { ...@@ -1448,7 +1460,12 @@ describe('ReactRefreshLogBox app', () => {
"source": "./app/module.js (1:1) "source": "./app/module.js (1:1)
Module not found: Can't resolve 'non-existing-module' Module not found: Can't resolve 'non-existing-module'
> 1 | import "non-existing-module" > 1 | import "non-existing-module"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^", | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Import trace:
Server Component:
./app/module.js
./app/layout.js
https://nextjs.org/docs/messages/module-not-found",
"stack": [], "stack": [],
} }
`) `)
...@@ -1524,7 +1541,13 @@ describe('ReactRefreshLogBox app', () => { ...@@ -1524,7 +1541,13 @@ describe('ReactRefreshLogBox app', () => {
"source": "./app/styles2.css (1:1) "source": "./app/styles2.css (1:1)
Module not found: Can't resolve './boom.css' Module not found: Can't resolve './boom.css'
> 1 | @import "./boom.css" > 1 | @import "./boom.css"
| ^", | ^
Import trace:
Client Component Browser:
./app/styles2.css [Client Component Browser]
./app/styles1.css [Client Component Browser]
./app/layout.js [Server Component]
https://nextjs.org/docs/messages/module-not-found",
"stack": [], "stack": [],
} }
`) `)
......
...@@ -448,7 +448,15 @@ describe('ReactRefreshLogBox', () => { ...@@ -448,7 +448,15 @@ describe('ReactRefreshLogBox', () => {
"source": "./index.js (7:1) "source": "./index.js (7:1)
Parsing ecmascript source code failed Parsing ecmascript source code failed
> 7 | } > 7 | }
| ^", | ^
Unexpected token. Did you mean \`{'}'}\` or \`}\`?
Import traces:
Browser:
./index.js
./pages/index.js
SSR:
./index.js
./pages/index.js",
"stack": [], "stack": [],
} }
`) `)
...@@ -715,7 +723,17 @@ describe('ReactRefreshLogBox', () => { ...@@ -715,7 +723,17 @@ describe('ReactRefreshLogBox', () => {
"source": "./index.module.css (1:8) "source": "./index.module.css (1:8)
Parsing CSS source code failed Parsing CSS source code failed
> 1 | .button > 1 | .button
| ^", | ^
Unexpected end of input
Import traces:
Browser:
./index.module.css
./index.js
./pages/index.js
SSR:
./index.module.css
./index.js
./pages/index.js",
"stack": [], "stack": [],
} }
`) `)
......
...@@ -185,7 +185,9 @@ describe('react-dom/server in React Server environment', () => { ...@@ -185,7 +185,9 @@ describe('react-dom/server in React Server environment', () => {
"source": "./app/exports/app-code/react-dom-server-edge-implicit/page.js (3:1) "source": "./app/exports/app-code/react-dom-server-edge-implicit/page.js (3:1)
Ecmascript file had an error Ecmascript file had an error
> 3 | import ReactDOMServerEdgeDefault from 'react-dom/server' > 3 | import ReactDOMServerEdgeDefault from 'react-dom/server'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^", | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component instead for perf and security.
Learn more: https://nextjs.org/docs/app/building-your-application/rendering",
"stack": [], "stack": [],
} }
`) `)
......
...@@ -498,7 +498,8 @@ describe('middleware - development errors', () => { ...@@ -498,7 +498,8 @@ describe('middleware - development errors', () => {
"source": "./middleware.js (1:28) "source": "./middleware.js (1:28)
Parsing ecmascript source code failed Parsing ecmascript source code failed
> 1 | export default function () } > 1 | export default function () }
| ^", | ^
Expected '{', got '}'",
"stack": [], "stack": [],
} }
`) `)
...@@ -583,7 +584,8 @@ describe('middleware - development errors', () => { ...@@ -583,7 +584,8 @@ describe('middleware - development errors', () => {
"source": "./middleware.js (1:28) "source": "./middleware.js (1:28)
Parsing ecmascript source code failed Parsing ecmascript source code failed
> 1 | export default function () } > 1 | export default function () }
| ^", | ^
Expected '{', got '}'",
"stack": [], "stack": [],
} }
`) `)
......
...@@ -36,7 +36,9 @@ describe('app-dir edge SSR invalid reexport', () => { ...@@ -36,7 +36,9 @@ describe('app-dir edge SSR invalid reexport', () => {
"source": "./app/export/inherit/page.tsx (1:28) "source": "./app/export/inherit/page.tsx (1:28)
Next.js can't recognize the exported \`preferredRegion\` field in route. It mustn't be reexported. Next.js can't recognize the exported \`preferredRegion\` field in route. It mustn't be reexported.
> 1 | export { default, runtime, preferredRegion } from '../basic/page' > 1 | export { default, runtime, preferredRegion } from '../basic/page'
| ^^^^^^^^^^^^^^^", | ^^^^^^^^^^^^^^^
The exported configuration object in a source file needs to have a very specific format from which some properties can be statically parsed at compiled-time.
https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config",
"stack": [], "stack": [],
} }
`) `)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment