File tree Expand file tree Collapse file tree
en-US/handbook/workflow-javascript
fr-FR/handbook/workflow-javascript
ja-JP/handbook/workflow-javascript
ru-RU/handbook/workflow-javascript
zh-CN/handbook/workflow-javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ Then add the package's relative (or absolute) path based on the application's CW
7575WORKFLOW_SCRIPT_MODULES =./storage/node_modules/exceljs
7676```
7777
78- You can then use the ` exceljs ` package in your script:
78+ You can then use the ` exceljs ` package in your script (the ` require ` name must exactly match the one defined in the environment variable) :
7979
8080``` js
81- const ExcelJS = require (' exceljs' );
81+ const ExcelJS = require (' ./storage/node_modules/ exceljs' );
8282// ...
8383```
8484
Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ Then add the package's relative (or absolute) path based on the application's CW
6969WORKFLOW_SCRIPT_MODULES =./storage/node_modules/exceljs
7070```
7171
72- You can then use the ` exceljs ` package in your script:
72+ You can then use the ` exceljs ` package in your script (the ` require ` name must exactly match the one defined in the environment variable) :
7373
7474``` js
75- const ExcelJS = require (' exceljs' );
75+ const ExcelJS = require (' ./storage/node_modules/ exceljs' );
7676// ...
7777```
7878
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ Then add the package's relative (or absolute) path based on the application's CW
7575WORKFLOW_SCRIPT_MODULES =./storage/node_modules/exceljs
7676```
7777
78- You can then use the ` exceljs ` package in your script:
78+ You can then use the ` exceljs ` package in your script (the ` require ` name must exactly match the one defined in the environment variable) :
7979
8080``` js
81- const ExcelJS = require (' exceljs' );
81+ const ExcelJS = require (' ./storage/node_modules/ exceljs' );
8282// ...
8383```
8484
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ Then add the package's relative (or absolute) path based on the application's CW
7575WORKFLOW_SCRIPT_MODULES =./storage/node_modules/exceljs
7676```
7777
78- You can then use the ` exceljs ` package in your script:
78+ You can then use the ` exceljs ` package in your script (the ` require ` name must exactly match the one defined in the environment variable) :
7979
8080``` js
81- const ExcelJS = require (' exceljs' );
81+ const ExcelJS = require (' ./storage/node_modules/ exceljs' );
8282// ...
8383```
8484
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ npm i --no-save --no-package-lock --prefix . exceljs
7575WORKFLOW_SCRIPT_MODULES =./storage/node_modules/exceljs
7676```
7777
78- 即可在脚本中使用 ` exceljs ` 包:
78+ 即可在脚本中使用 ` exceljs ` 包( ` require ` 的名称需要与环境变量中定义的完全一致) :
7979
8080``` js
81- const ExcelJS = require (' exceljs' );
81+ const ExcelJS = require (' ./storage/node_modules/ exceljs' );
8282// ...
8383```
8484
You can’t perform that action at this time.
0 commit comments