Skip to content

Commit 0d4a622

Browse files
committed
fix(nuxt,schema): remove .js extension from template imports
1 parent 94a6f05 commit 0d4a622

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/nuxt/src/core/nitro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { Nuxt, NuxtOptions, RuntimeConfig } from 'nuxt/schema'
1717
import { version as nuxtVersion } from '../../package.json'
1818
import { distDir } from '../dirs'
1919
import { toArray } from '../utils'
20-
import { template as defaultSpaLoadingTemplate } from './templates/spa-loading-icon.js'
20+
import { template as defaultSpaLoadingTemplate } from './templates/spa-loading-icon'
2121
import { ImportProtectionPlugin, nuxtImportProtections } from './plugins/import-protection'
2222

2323
const logLevelMapReverse = {

packages/nuxt/src/core/runtime/nitro/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default <NitroErrorHandler> async function errorhandler (error: H3Error,
6666

6767
// Fallback to static rendered error page
6868
if (!res) {
69-
const { template } = import.meta.dev ? await import('./error-dev.js') : await import('./error-500.js')
69+
const { template } = import.meta.dev ? await import('./error-dev') : await import('./error-500')
7070
if (import.meta.dev) {
7171
// TODO: Support `message` in template
7272
(errorObject as any).description = errorObject.message

packages/schema/src/config/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineUntypedSchema } from 'untyped'
2-
import { template as loadingTemplate } from '../templates/loading.js'
2+
import { template as loadingTemplate } from '../templates/loading'
33

44
export default defineUntypedSchema({
55
devServer: {

0 commit comments

Comments
 (0)