-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
教えてください。
PREVIEWで Cannot find packageエラー発生
INITコマンドでvivliostyle.config.jsを作成して、PREVIEWコマンドで表示しようとしたら、エラーが発生しました。
Ver9系のころは、問題なく動作していました。
$ vivliostyle init
SUCCESS Successfully created a config file at vivliostyle.config.js
$ ls -l
total 8
-rw-r--r-- 1 pi pi 22 Mar 19 15:56 manuscript.md
-rw-r--r-- 1 pi pi 263 Mar 19 15:53 vivliostyle.config.js
$ cat vivliostyle.config.js
// @ts-check
import { defineConfig } from '@vivliostyle/cli';
export default defineConfig({
title: "My Title",
author: "My Name",
language: "en",
browser: "chrome@143.0.7499.42",
image: "ghcr.io/vivliostyle/cli:10.3.0",
entry: ["manuscript.md"],
});
$ vivliostyle preview
ERROR An error occurred on loading a config file: /home/pi/test2/vivliostyle.config.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@vivliostyle/cli' imported from /home/pi/test2/vivliostyle.config.js
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:256:9)
at packageResolve (node:internal/modules/esm/resolve:768:81)
at moduleResolve (node:internal/modules/esm/resolve:854:18)
at defaultResolve (node:internal/modules/esm/resolve:984:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:780:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:704:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:687:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:305:38)
at ModuleJob._link (node:internal/modules/esm/module_job:137:49)
$ vivliostyle --version
cli: 10.3.0
core: 2.40.0
$
何か手順が必要になったのでしょうか。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels