This repository was archived by the owner on Apr 19, 2021. It is now read-only.
This repository was archived by the owner on Apr 19, 2021. It is now read-only.
Hot reloading (automatic refreshing) from TypeScript files #9
Open
Description
From Carlo$#3952
on Discord
My issue is this:
//client.ts
import * as sapper from "@sapper/app";
import { setup } from "fileInSRCNodeModules";
(async () => {
await setup();
await sapper.start({
target: document.querySelector("#sapper")
});
)();
When I run
npm run dev
I get:
Could not load C:/example/src/node_modules/fileInSRCNodeModules.ts (imported by C:\example\src\client.ts): Debug Failure. False expression: Expected fileName
to be present in command line
Edit 1:
Creating the file in "/src/someFile.ts"
or even "/src/folder/someFile.ts"
And then calling it from "client.ts"
as -
import { setup } from "./someFile.ts"
works
am I accidently not allowing "node_modules"
access? But "@sapper/app"
works
Metadata
Metadata
Assignees
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
babichjacob commentedon Jul 11, 2020
Live reload possibly not workingProbably an upstream problem
[-]Accessing TypeScript files from `src/node_modules/`[/-][+]TypeScript files in `src/node_modules/`; Hot reloading (automatic refreshing) from TypeScript files[/+]babichjacob commentedon Jul 11, 2020
[-]TypeScript files in `src/node_modules/`; Hot reloading (automatic refreshing) from TypeScript files[/-][+]Hot reloading (automatic refreshing) from TypeScript files[/+]