Unverified Commit 5f8be1f0 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Turbopack: Use structured styled text in issue descriptions (#58156)

Requires vercel/turbo#6388

This uses the structure implemented in vercel/turbo#6388 to support formatted text when reporting. Right now only the `Line` and basic `String` cases are handled.
parent a5515693
This diff is collapsed.
...@@ -40,11 +40,11 @@ next-transform-strip-page-exports = { path = "packages/next-swc/crates/next-tran ...@@ -40,11 +40,11 @@ next-transform-strip-page-exports = { path = "packages/next-swc/crates/next-tran
testing = { version = "0.35.7" } testing = { version = "0.35.7" }
# Turbo crates # Turbo crates
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231113.3" } turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231114.2" }
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros.. # [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231113.3" } turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231114.2" }
# [TODO]: need to refactor embed_directory! macro usage in next-core # [TODO]: need to refactor embed_directory! macro usage in next-core
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231113.3" } turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231114.2" }
# General Deps # General Deps
......
...@@ -13,7 +13,7 @@ use turbopack_binding::{ ...@@ -13,7 +13,7 @@ use turbopack_binding::{
turbopack::core::{ turbopack::core::{
diagnostics::{Diagnostic, DiagnosticContextExt, PlainDiagnostic}, diagnostics::{Diagnostic, DiagnosticContextExt, PlainDiagnostic},
error::PrettyPrintError, error::PrettyPrintError,
issue::{IssueDescriptionExt, PlainIssue, PlainIssueSource, PlainSource}, issue::{IssueDescriptionExt, PlainIssue, PlainIssueSource, PlainSource, StyledString},
source_pos::SourcePos, source_pos::SourcePos,
}, },
}; };
...@@ -101,7 +101,7 @@ pub struct NapiIssue { ...@@ -101,7 +101,7 @@ pub struct NapiIssue {
pub category: String, pub category: String,
pub file_path: String, pub file_path: String,
pub title: String, pub title: String,
pub description: String, pub description: serde_json::Value,
pub detail: String, pub detail: String,
pub source: Option<NapiIssueSource>, pub source: Option<NapiIssueSource>,
pub documentation_link: String, pub documentation_link: String,
...@@ -111,7 +111,8 @@ pub struct NapiIssue { ...@@ -111,7 +111,8 @@ pub struct NapiIssue {
impl From<&PlainIssue> for NapiIssue { impl From<&PlainIssue> for NapiIssue {
fn from(issue: &PlainIssue) -> Self { fn from(issue: &PlainIssue) -> Self {
Self { Self {
description: issue.description.clone(), description: serde_json::to_value(Into::<NapiStyledString>::into(&issue.description))
.unwrap(),
category: issue.category.clone(), category: issue.category.clone(),
file_path: issue.file_path.clone(), file_path: issue.file_path.clone(),
detail: issue.detail.clone(), detail: issue.detail.clone(),
...@@ -128,6 +129,38 @@ impl From<&PlainIssue> for NapiIssue { ...@@ -128,6 +129,38 @@ impl From<&PlainIssue> for NapiIssue {
} }
} }
#[derive(Serialize)]
#[serde(tag = "type", rename_all = "camelCase")]
pub enum NapiStyledString {
Line { value: Vec<NapiStyledString> },
Stack { value: Vec<NapiStyledString> },
Text { value: String },
Code { value: String },
Strong { value: String },
}
impl From<&StyledString> for NapiStyledString {
fn from(value: &StyledString) -> Self {
match value {
StyledString::Line(parts) => NapiStyledString::Line {
value: parts.iter().map(|p| p.into()).collect(),
},
StyledString::Stack(parts) => NapiStyledString::Stack {
value: parts.iter().map(|p| p.into()).collect(),
},
StyledString::Text(string) => NapiStyledString::Text {
value: string.clone(),
},
StyledString::Code(string) => NapiStyledString::Code {
value: string.clone(),
},
StyledString::Strong(string) => NapiStyledString::Strong {
value: string.clone(),
},
}
}
}
#[napi(object)] #[napi(object)]
pub struct NapiIssueSource { pub struct NapiIssueSource {
pub source: NapiSource, pub source: NapiSource,
......
...@@ -13,7 +13,7 @@ use turbopack_binding::turbopack::{ ...@@ -13,7 +13,7 @@ use turbopack_binding::turbopack::{
core::{ core::{
file_source::FileSource, file_source::FileSource,
ident::AssetIdent, ident::AssetIdent,
issue::{Issue, IssueExt, IssueSeverity, IssueSource, OptionIssueSource}, issue::{Issue, IssueExt, IssueSeverity, IssueSource, OptionIssueSource, StyledString},
source::Source, source::Source,
}, },
ecmascript::{ ecmascript::{
...@@ -178,12 +178,13 @@ impl Issue for NextSegmentConfigParsingIssue { ...@@ -178,12 +178,13 @@ impl Issue for NextSegmentConfigParsingIssue {
} }
#[turbo_tasks::function] #[turbo_tasks::function]
fn description(&self) -> Vc<String> { fn description(&self) -> Vc<StyledString> {
Vc::cell( StyledString::Text(
"The exported configuration object in a source file need to have a very specific \ "The exported configuration object in a source file need to have a very specific \
format from which some properties can be statically parsed at compiled-time." format from which some properties can be statically parsed at compiled-time."
.to_string(), .to_string(),
) )
.cell()
} }
#[turbo_tasks::function] #[turbo_tasks::function]
......
...@@ -13,7 +13,7 @@ use turbo_tasks::{ ...@@ -13,7 +13,7 @@ use turbo_tasks::{
}; };
use turbopack_binding::{ use turbopack_binding::{
turbo::tasks_fs::{DirectoryContent, DirectoryEntry, FileSystemEntryType, FileSystemPath}, turbo::tasks_fs::{DirectoryContent, DirectoryEntry, FileSystemEntryType, FileSystemPath},
turbopack::core::issue::{Issue, IssueExt, IssueSeverity}, turbopack::core::issue::{Issue, IssueExt, IssueSeverity, StyledString},
}; };
use crate::{ use crate::{
...@@ -468,11 +468,12 @@ fn conflict_issue( ...@@ -468,11 +468,12 @@ fn conflict_issue(
DirectoryTreeIssue { DirectoryTreeIssue {
app_dir, app_dir,
message: Vc::cell(format!( message: StyledString::Text(format!(
"Conflicting {} at {}: {a} at {value_a} and {b} at {value_b}", "Conflicting {} at {}: {a} at {value_a} and {b} at {value_b}",
item_names, item_names,
e.key(), e.key(),
)), ))
.cell(),
severity: IssueSeverity::Error.cell(), severity: IssueSeverity::Error.cell(),
} }
.cell() .cell()
...@@ -781,11 +782,12 @@ async fn directory_tree_to_loader_tree( ...@@ -781,11 +782,12 @@ async fn directory_tree_to_loader_tree(
// TODO: improve error message to have the full paths // TODO: improve error message to have the full paths
DirectoryTreeIssue { DirectoryTreeIssue {
app_dir, app_dir,
message: Vc::cell(format!( message: StyledString::Text(format!(
"You cannot have two parallel pages that resolve to the same path. Route \ "You cannot have two parallel pages that resolve to the same path. Route \
{} has multiple matches in {}", {} has multiple matches in {}",
for_app_path, app_page for_app_path, app_page
)), ))
.cell(),
severity: IssueSeverity::Error.cell(), severity: IssueSeverity::Error.cell(),
} }
.cell() .cell()
...@@ -1127,7 +1129,7 @@ pub async fn get_global_metadata( ...@@ -1127,7 +1129,7 @@ pub async fn get_global_metadata(
struct DirectoryTreeIssue { struct DirectoryTreeIssue {
pub severity: Vc<IssueSeverity>, pub severity: Vc<IssueSeverity>,
pub app_dir: Vc<FileSystemPath>, pub app_dir: Vc<FileSystemPath>,
pub message: Vc<String>, pub message: Vc<StyledString>,
} }
#[turbo_tasks::value_impl] #[turbo_tasks::value_impl]
...@@ -1155,7 +1157,7 @@ impl Issue for DirectoryTreeIssue { ...@@ -1155,7 +1157,7 @@ impl Issue for DirectoryTreeIssue {
} }
#[turbo_tasks::function] #[turbo_tasks::function]
fn description(&self) -> Vc<String> { fn description(&self) -> Vc<StyledString> {
self.message self.message
} }
} }
...@@ -4,7 +4,7 @@ use turbopack_binding::{ ...@@ -4,7 +4,7 @@ use turbopack_binding::{
turbo::tasks_fs::{FileSystemEntryType, FileSystemPath}, turbo::tasks_fs::{FileSystemEntryType, FileSystemPath},
turbopack::{ turbopack::{
core::{ core::{
issue::{Issue, IssueExt, IssueSeverity}, issue::{Issue, IssueExt, IssueSeverity, StyledString},
resolve::{parse::Request, pattern::Pattern, resolve}, resolve::{parse::Request, pattern::Pattern, resolve},
}, },
node::transforms::webpack::WebpackLoaderItem, node::transforms::webpack::WebpackLoaderItem,
...@@ -77,10 +77,11 @@ pub async fn maybe_add_babel_loader( ...@@ -77,10 +77,11 @@ pub async fn maybe_add_babel_loader(
"Unable to resolve babel-loader, but a babel config is present" "Unable to resolve babel-loader, but a babel config is present"
.to_owned(), .to_owned(),
), ),
description: Vc::cell( description: StyledString::Text(
"Make sure babel-loader is installed via your package manager." "Make sure babel-loader is installed via your package manager."
.to_owned(), .to_owned(),
), )
.cell(),
severity: IssueSeverity::Fatal.cell(), severity: IssueSeverity::Fatal.cell(),
} }
.cell() .cell()
...@@ -143,7 +144,7 @@ pub async fn is_babel_loader_available(project_path: Vc<FileSystemPath>) -> Resu ...@@ -143,7 +144,7 @@ pub async fn is_babel_loader_available(project_path: Vc<FileSystemPath>) -> Resu
struct BabelIssue { struct BabelIssue {
path: Vc<FileSystemPath>, path: Vc<FileSystemPath>,
title: Vc<String>, title: Vc<String>,
description: Vc<String>, description: Vc<StyledString>,
severity: Vc<IssueSeverity>, severity: Vc<IssueSeverity>,
} }
...@@ -170,7 +171,7 @@ impl Issue for BabelIssue { ...@@ -170,7 +171,7 @@ impl Issue for BabelIssue {
} }
#[turbo_tasks::function] #[turbo_tasks::function]
fn description(&self) -> Vc<String> { fn description(&self) -> Vc<StyledString> {
self.description self.description
} }
} }
...@@ -12,7 +12,7 @@ use turbopack_binding::{ ...@@ -12,7 +12,7 @@ use turbopack_binding::{
context::AssetContext, context::AssetContext,
file_source::FileSource, file_source::FileSource,
ident::AssetIdent, ident::AssetIdent,
issue::{Issue, IssueDescriptionExt, IssueExt, IssueSeverity}, issue::{Issue, IssueDescriptionExt, IssueExt, IssueSeverity, StyledString},
reference_type::{EntryReferenceSubType, InnerAssets, ReferenceType}, reference_type::{EntryReferenceSubType, InnerAssets, ReferenceType},
resolve::{ resolve::{
find_context_file, find_context_file,
...@@ -978,7 +978,7 @@ impl Issue for OutdatedConfigIssue { ...@@ -978,7 +978,7 @@ impl Issue for OutdatedConfigIssue {
} }
#[turbo_tasks::function] #[turbo_tasks::function]
fn description(&self) -> Vc<String> { fn description(&self) -> Vc<StyledString> {
Vc::cell(self.description.to_string()) StyledString::Text(self.description.to_string()).cell()
} }
} }
...@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize}; ...@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
use turbo_tasks::{trace::TraceRawVcs, Vc}; use turbo_tasks::{trace::TraceRawVcs, Vc};
use turbopack_binding::{ use turbopack_binding::{
turbo::tasks_fs::FileSystemPath, turbo::tasks_fs::FileSystemPath,
turbopack::core::issue::{IssueExt, IssueSeverity}, turbopack::core::issue::{IssueExt, IssueSeverity, StyledString},
}; };
use super::options::NextFontGoogleOptions; use super::options::NextFontGoogleOptions;
...@@ -86,7 +86,10 @@ pub(super) async fn get_font_fallback( ...@@ -86,7 +86,10 @@ pub(super) async fn get_font_fallback(
"Failed to find font override values for font `{}`", "Failed to find font override values for font `{}`",
&options.font_family, &options.font_family,
)), )),
description: Vc::cell("Skipping generating a fallback font.".to_owned()), description: StyledString::Text(
"Skipping generating a fallback font.".to_owned(),
)
.cell(),
severity: IssueSeverity::Warning.cell(), severity: IssueSeverity::Warning.cell(),
} }
.cell() .cell()
......
use turbo_tasks::Vc; use turbo_tasks::Vc;
use turbopack_binding::{ use turbopack_binding::{
turbo::tasks_fs::FileSystemPath, turbo::tasks_fs::FileSystemPath,
turbopack::core::issue::{Issue, IssueSeverity}, turbopack::core::issue::{Issue, IssueSeverity, StyledString},
}; };
#[turbo_tasks::value(shared)] #[turbo_tasks::value(shared)]
pub(crate) struct NextFontIssue { pub(crate) struct NextFontIssue {
pub(crate) path: Vc<FileSystemPath>, pub(crate) path: Vc<FileSystemPath>,
pub(crate) title: Vc<String>, pub(crate) title: Vc<String>,
pub(crate) description: Vc<String>, pub(crate) description: Vc<StyledString>,
pub(crate) severity: Vc<IssueSeverity>, pub(crate) severity: Vc<IssueSeverity>,
} }
...@@ -35,7 +35,7 @@ impl Issue for NextFontIssue { ...@@ -35,7 +35,7 @@ impl Issue for NextFontIssue {
} }
#[turbo_tasks::function] #[turbo_tasks::function]
fn description(&self) -> Vc<String> { fn description(&self) -> Vc<StyledString> {
self.description self.description
} }
} }
...@@ -12,7 +12,7 @@ use turbopack_binding::{ ...@@ -12,7 +12,7 @@ use turbopack_binding::{
asset::AssetContent, asset::AssetContent,
environment::{ServerAddr, ServerInfo}, environment::{ServerAddr, ServerInfo},
ident::AssetIdent, ident::AssetIdent,
issue::{Issue, IssueExt, IssueSeverity}, issue::{Issue, IssueExt, IssueSeverity, StyledString},
module::Module, module::Module,
source::Source, source::Source,
virtual_source::VirtualSource, virtual_source::VirtualSource,
...@@ -191,12 +191,13 @@ impl Issue for NextSourceConfigParsingIssue { ...@@ -191,12 +191,13 @@ impl Issue for NextSourceConfigParsingIssue {
} }
#[turbo_tasks::function] #[turbo_tasks::function]
fn description(&self) -> Vc<String> { fn description(&self) -> Vc<StyledString> {
Vc::cell( StyledString::Text(
"The exported configuration object in a source file need to have a very specific \ "The exported configuration object in a source file need to have a very specific \
format from which some properties can be statically parsed at compiled-time." format from which some properties can be statically parsed at compiled-time."
.to_string(), .to_string(),
) )
.cell()
} }
#[turbo_tasks::function] #[turbo_tasks::function]
......
...@@ -473,12 +473,34 @@ export interface TurboEngineOptions { ...@@ -473,12 +473,34 @@ export interface TurboEngineOptions {
memoryLimit?: number memoryLimit?: number
} }
export type StyledString =
| {
type: 'text'
value: string
}
| {
type: 'code'
value: string
}
| {
type: 'strong'
value: string
}
| {
type: 'stack'
value: StyledString[]
}
| {
type: 'line'
value: StyledString[]
}
export interface Issue { export interface Issue {
severity: string severity: string
category: string category: string
filePath: string filePath: string
title: string title: string
description: string description: StyledString
detail: string detail: string
source?: { source?: {
source: { source: {
......
...@@ -6,6 +6,7 @@ import type { ...@@ -6,6 +6,7 @@ import type {
WrittenEndpoint, WrittenEndpoint,
Issue, Issue,
Project, Project,
StyledString,
} from '../../../build/swc' } from '../../../build/swc'
import type { Socket } from 'net' import type { Socket } from 'net'
import type { FilesystemDynamicRoute } from './filesystem' import type { FilesystemDynamicRoute } from './filesystem'
...@@ -126,6 +127,7 @@ import type { ActionManifest } from '../../../build/webpack/plugins/flight-clien ...@@ -126,6 +127,7 @@ import type { ActionManifest } from '../../../build/webpack/plugins/flight-clien
import { denormalizePagePath } from '../../../shared/lib/page-path/denormalize-page-path' import { denormalizePagePath } from '../../../shared/lib/page-path/denormalize-page-path'
import type { LoadableManifest } from '../../load-components' import type { LoadableManifest } from '../../load-components'
import { generateRandomActionKeyRaw } from '../../app-render/action-encryption-utils' import { generateRandomActionKeyRaw } from '../../app-render/action-encryption-utils'
import { bold, green, red } from '../../../lib/picocolors'
const wsServer = new ws.Server({ noServer: true }) const wsServer = new ws.Server({ noServer: true })
...@@ -279,50 +281,63 @@ async function startWatcher(opts: SetupOpts) { ...@@ -279,50 +281,63 @@ async function startWatcher(opts: SetupOpts) {
const issues = new Map<string, Map<string, Issue>>() const issues = new Map<string, Map<string, Issue>>()
function issueKey(issue: Issue): string { function issueKey(issue: Issue): string {
return `${issue.severity} - ${issue.filePath} - ${issue.title}\n${issue.description}\n\n` return [
issue.severity,
issue.filePath,
issue.title,
JSON.stringify(issue.description),
].join('-')
} }
function formatIssue(issue: Issue) { function formatIssue(issue: Issue) {
const { filePath, title, description, source, detail } = issue const { filePath, title, description, source, detail } = issue
let formattedTitle = title.replace(/\n/g, '\n ') let formattedTitle = title.replace(/\n/g, '\n ')
let message = ''
let formattedFilePath = filePath let formattedFilePath = filePath
.replace('[project]/', '') .replace('[project]/', '')
.replaceAll('/./', '/') .replaceAll('/./', '/')
.replace('\\\\?\\', '') .replace('\\\\?\\', '')
let message
if (source) { if (source) {
if (source.range) { if (source.range) {
const { start, end } = source.range const { start } = source.range
message = `${issue.severity} - ${formattedFilePath}:${ message = `${issue.severity} - ${formattedFilePath}:${
start.line + 1 start.line + 1
}:${start.column} ${formattedTitle}` }:${start.column}`
if (source.source.content) {
const {
codeFrameColumns,
} = require('next/dist/compiled/babel/code-frame')
message +=
'\n\n' +
codeFrameColumns(
source.source.content,
{
start: { line: start.line + 1, column: start.column + 1 },
end: { line: end.line + 1, column: end.column + 1 },
},
{ forceColor: true }
)
}
} else { } else {
message = `${issue.severity} - ${formattedFilePath} ${formattedTitle}` message = `${issue.severity} - ${formattedFilePath} ${formattedTitle}`
} }
} else { } else {
message = `${formattedTitle}` message = `${formattedTitle}`
} }
if (source?.range && source.source.content) {
const { start, end } = source.range
const {
codeFrameColumns,
} = require('next/dist/compiled/babel/code-frame')
message +=
'\n\n' +
codeFrameColumns(
source.source.content,
{
start: { line: start.line + 1, column: start.column + 1 },
end: { line: end.line + 1, column: end.column + 1 },
},
{ forceColor: true }
)
}
if (description) { if (description) {
message += `\n${description.replace(/\n/g, '\n ')}` message += `\n${renderStyledStringToErrorAnsi(description).replace(
/\n/g,
'\n '
)}`
} }
if (detail) { if (detail) {
message += `\n${detail.replace(/\n/g, '\n ')}` message += `\n${detail.replace(/\n/g, '\n ')}`
} }
...@@ -350,7 +365,7 @@ async function startWatcher(opts: SetupOpts) { ...@@ -350,7 +365,7 @@ async function startWatcher(opts: SetupOpts) {
const key = issueKey(issue) const key = issueKey(issue)
const formatted = formatIssue(issue) const formatted = formatIssue(issue)
if (!oldSet.has(key) && !newSet.has(key)) { if (!oldSet.has(key) && !newSet.has(key)) {
console.error(` ⚠ ${displayName} ${key} ${formatted}\n\n`) console.error(` ⚠ ${displayName} ${formatted}\n\n`)
} }
newSet.set(key, issue) newSet.set(key, issue)
relevantIssues.add(formatted) relevantIssues.add(formatted)
...@@ -2489,3 +2504,29 @@ export async function setupDevBundler(opts: SetupOpts) { ...@@ -2489,3 +2504,29 @@ export async function setupDevBundler(opts: SetupOpts) {
} }
export type DevBundler = Awaited<ReturnType<typeof setupDevBundler>> export type DevBundler = Awaited<ReturnType<typeof setupDevBundler>>
function renderStyledStringToErrorAnsi(string: StyledString): string {
switch (string.type) {
case 'text':
return string.value
case 'strong':
return bold(red(string.value))
case 'code':
return green(string.value)
case 'line': {
let line = ''
for (const styled of string.value) {
line += renderStyledStringToErrorAnsi(styled)
}
return line + '\n'
}
case 'stack':
let stack = ''
for (const styled of string.value) {
stack += renderStyledStringToErrorAnsi(styled) + '\n'
}
return stack + '\n'
default:
throw new Error('Unknown StyledString type', string)
}
}
import localFont from 'next/font/local' import localFont from 'next/font/local'
export const font1 = localFont({ src: '../../fonts/font1.woff2', variable: '--font-1' }) export const font1 = localFont({
src: '../../fonts/font1.woff2',
variable: '--font-1',
})
...@@ -8268,16 +8268,15 @@ ...@@ -8268,16 +8268,15 @@
"runtimeError": false "runtimeError": false
}, },
"test/integration/edge-runtime-module-errors/test/module-imports.test.js": { "test/integration/edge-runtime-module-errors/test/module-imports.test.js": {
"passed": [ "passed": [],
"Edge runtime code with imports Edge API importing unused node.js module does not throw in dev at runtime",
"Edge runtime code with imports Middleware importing unused node.js module does not throw in dev at runtime"
],
"failed": [ "failed": [
"Edge runtime code with imports Edge API dynamically importing 3rd party module throws not-found module error in dev at runtime and highlights the faulty line", "Edge runtime code with imports Edge API dynamically importing 3rd party module throws not-found module error in dev at runtime and highlights the faulty line",
"Edge runtime code with imports Edge API importing unused 3rd party module throws not-found module error in dev at runtime and highlights the faulty line", "Edge runtime code with imports Edge API importing unused 3rd party module throws not-found module error in dev at runtime and highlights the faulty line",
"Edge runtime code with imports Edge API importing unused node.js module does not throw in dev at runtime",
"Edge runtime code with imports Edge API statically importing node.js module throws unsupported module error in dev at runtime and highlights the faulty line", "Edge runtime code with imports Edge API statically importing node.js module throws unsupported module error in dev at runtime and highlights the faulty line",
"Edge runtime code with imports Middleware dynamically importing 3rd party module throws not-found module error in dev at runtime and highlights the faulty line", "Edge runtime code with imports Middleware dynamically importing 3rd party module throws not-found module error in dev at runtime and highlights the faulty line",
"Edge runtime code with imports Middleware importing unused 3rd party module throws not-found module error in dev at runtime and highlights the faulty line", "Edge runtime code with imports Middleware importing unused 3rd party module throws not-found module error in dev at runtime and highlights the faulty line",
"Edge runtime code with imports Middleware importing unused node.js module does not throw in dev at runtime",
"Edge runtime code with imports Middleware statically importing node.js module throws unsupported module error in dev at runtime and highlights the faulty line" "Edge runtime code with imports Middleware statically importing node.js module throws unsupported module error in dev at runtime and highlights the faulty line"
], ],
"pending": [ "pending": [
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