Skip to content

Build your personal knowledge base with Trilium Notes

server: Fix various imports

Elian Doran42f0073ab605
diff --git a/spec-es6/attribute_parser.spec.ts b/spec-es6/attribute_parser.spec.ts
index ad96e7644f..60f510d8db 100644
--- a/spec-es6/attribute_parser.spec.ts
+++ b/spec-es6/attribute_parser.spec.ts
@@ -1,6 +1,6 @@
import * as attributeParser from '../src/public/app/services/attribute_parser.js';
-import {describe, it, expect, execute} from './mini_test';
+import {describe, it, expect, execute} from './mini_test.js';
describe("Lexing", () => {
it("simple label", () => {
diff --git a/spec/etapi/notes.ts b/spec/etapi/notes.ts
index 60a0ebcd75..cbfd4de7ee 100644
--- a/spec/etapi/notes.ts
+++ b/spec/etapi/notes.ts
@@ -1,5 +1,5 @@
import crypto from "crypto";
-import etapi from "../support/etapi";
+import etapi from "../support/etapi.js";
etapi.describeEtapi("notes", () => {
it("create", async () => {
diff --git a/spec/search/parens.spec.ts b/spec/search/parens.spec.ts
index bf1482356e..3bc900b8bb 100644
--- a/spec/search/parens.spec.ts
+++ b/spec/search/parens.spec.ts
@@ -1,5 +1,5 @@
-import handleParens from "../../src/services/search/services/handle_parens";
-import { TokenStructure } from "../../src/services/search/services/types";
+import handleParens from "../../src/services/search/services/handle_parens.js";
+import { TokenStructure } from "../../src/services/search/services/types.js";
describe("Parens handler", () => {
it("handles parens", () => {
diff --git a/src/services/import/enex.ts b/src/services/import/enex.ts
index 739b418c33..b6aa420724 100644
--- a/src/services/import/enex.ts
+++ b/src/services/import/enex.ts
@@ -11,7 +11,7 @@ import htmlSanitizer from "../html_sanitizer.js";
import sanitizeAttributeName from "../sanitize_attribute_name.js";
import TaskContext from "../task_context.js";
import BNote from "../../becca/entities/bnote.js";
-import { File } from "./common";
+import { File } from "./common.js";
import { AttributeType } from "../../becca/entities/rows.js";
/**
diff --git a/src/share/shaca/entities/sattribute.ts b/src/share/shaca/entities/sattribute.ts
index c29f5147ca..2b7647e4e7 100644
--- a/src/share/shaca/entities/sattribute.ts
+++ b/src/share/shaca/entities/sattribute.ts
@@ -1,6 +1,6 @@
"use strict";
-import AbstractShacaEntity from "./abstract_shaca_entity";
+import AbstractShacaEntity from "./abstract_shaca_entity.js";
import { SAttributeRow } from "./rows.js";
import SNote from "./snote.js";