Es-module requires file extension, updated all imports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import assert from "assert";
|
||||
import establishedDatabase from "../database/database";
|
||||
import establishedDatabase from "../database/database.js";
|
||||
|
||||
class Cache {
|
||||
constructor(database) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import moviedb from "km-moviedb";
|
||||
import redisCache from "../cache/redis";
|
||||
import redisCache from "../cache/redis.js";
|
||||
|
||||
const { Movie, Show, Person, Credits, ReleaseDates } = require("./types");
|
||||
import { Movie, Show, Person, Credits, ReleaseDates } from "./types.js";
|
||||
|
||||
class TMDBNotFoundError extends Error {
|
||||
constructor(message) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Movie from "./types/movie";
|
||||
import Show from "./types/show";
|
||||
import Person from "./types/person";
|
||||
import Credits from "./types/credits";
|
||||
import ReleaseDates from "./types/releaseDates";
|
||||
import Movie from "./types/movie.js";
|
||||
import Show from "./types/show.js";
|
||||
import Person from "./types/person.js";
|
||||
import Credits from "./types/credits.js";
|
||||
import ReleaseDates from "./types/releaseDates.js";
|
||||
|
||||
export default { Movie, Show, Person, Credits, ReleaseDates };
|
||||
export { Movie, Show, Person, Credits, ReleaseDates };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable camelcase */
|
||||
import Movie from "./movie";
|
||||
import Show from "./show";
|
||||
import Movie from "./movie.js";
|
||||
import Show from "./show.js";
|
||||
|
||||
class CreditedMovie extends Movie {}
|
||||
class CreditedShow extends Show {}
|
||||
|
||||
Reference in New Issue
Block a user