puse / machina

Proof-of-concept browser automation toolkit :construction:
Mozilla Public License 2.0
1 stars 0 forks source link

CLI executable fails as imported path aliases won't compile right #45

Closed antaranyan closed 1 year ago

antaranyan commented 1 year ago

CLI executable fails with:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@/twitter-adapter-playwright' imported from /home/mushegh/Projects/machina/build/cli/commands/details.js

and if we check compiled details.js it starts with

import { UserProfileViewAdapter } from "@/twitter-adapter-playwright/UserProfileViewAdapter.js";
import { obtainingUserDetails } from "@/twitter-api/ObtainingUserDetails.js";

Originally posted by @antaranyan in https://github.com/despan/machina/issues/43#issuecomment-1268254027