i not get dynamsoft ResourcesPath

89 views Asked by At

Dynamsoft.DWT.ResourcesPath = "dwt-resources"

Packege.json

"scripts": {
  "dev": "ncp node_modules/dwt/dist static/dwt-resources && nuxt",
  "build": "nuxt build",
  "start": "nuxt start",
  "generate": "nuxt generate && ncp node_modules/dwt/dist dist/dwt-resources"
}

I use framwork nuxt js but error get path.

1

There are 1 answers

0
yushulx On

The resource folder is located at the root directory of the project.

So change

Dynamsoft.DWT.ResourcesPath = "dwt-resources"

to

Dynamsoft.DWT.ResourcesPath = "/dwt-resources"