Skip to content

Commit 4f367d5

Browse files
authored
chore: fix Node 18 CI by changing .remote.js import to .remote.ts (#15331)
Quick fix to stop CI from failing. Node 18 doesn't like importing .ts files as .js. See https://github.com/sveltejs/kit/pull/15208/changes#r2737134500 --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [ ] This message body should clearly illustrate what problems it solves. - [ ] Ideally, include a test that fails without this PR but passes with it. ### Tests - [ ] Run the tests with `pnpm test` and lint the project with `pnpm lint` and `pnpm check` ### Changesets - [ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running `pnpm changeset` and following the prompts. Changesets that add features should be `minor` and those that fix bugs should be `patch`. Please prefix changeset messages with `feat:`, `fix:`, or `chore:`. ### Edits - [ ] Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.
1 parent 20dfadf commit 4f367d5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/kit/test/apps/async/src/routes/remote/form/preflight-pending/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import { create } from './form.remote.js';
2+
import { create } from './form.remote.ts';
33
import * as v from 'valibot';
44
55
const passing_schema = v.pipeAsync(

packages/kit/test/apps/async/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"esModuleInterop": true,
66
"noEmit": true,
77
"resolveJsonModule": true,
8+
// TODO: remove when we start SvelteKit 3.0
9+
// concession change for vite5, importing a .remote.ts as .remote.js doesn't
10+
// work on node 18, allowing .ts import and changing the imported suffix works.
811
"allowImportingTsExtensions": true
912
},
1013
"extends": "./.svelte-kit/tsconfig.json"

0 commit comments

Comments
 (0)