Hi I am using umzug "umzug": "^3.8.1 in a nextjs project and run the migration programmatically.
I was wondering if the dependencies for the CLI can be loaded dynamically as I have the impression they generate errors and are not needed.
This is what the error trace I have:
Import trace for requested module:
./node_modules/umzug/lib/umzug.js
./node_modules/umzug/lib/index.js
./app/lib/server/mongodb.ts
./app/[lang]/layout.tsx
⚠ ./node_modules/@rushstack/node-core-library/lib/FileWriter.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Import trace for requested module:
./node_modules/@rushstack/node-core-library/lib/FileWriter.js
./node_modules/@rushstack/node-core-library/lib/index.js
./node_modules/@rushstack/terminal/lib/NormalizeNewlinesTextRewriter.js
./node_modules/@rushstack/terminal/lib/index.js
./node_modules/@rushstack/ts-command-line/lib/providers/CommandLineParser.js
./node_modules/@rushstack/ts-command-line/lib/index.js
./node_modules/umzug/lib/cli.js
./node_modules/umzug/lib/index.js
./app/lib/server/mongodb.ts
./app/[lang]/layout.tsx
I am using the MongoDBStorage in my Umzug configuration.
Hi I am using umzug
"umzug": "^3.8.1
in a nextjs project and run the migration programmatically. I was wondering if the dependencies for the CLI can be loaded dynamically as I have the impression they generate errors and are not needed.This is what the error trace I have:
I am using the
MongoDBStorage
in my Umzug configuration.