Closed bhtomming closed 1 year ago
There are not errors but warnings.
The issue is from the jsonref
package, see https://github.com/vivocha/jsonref/pull/3.
I'm planning to switch to https://github.com/APIDevTools/json-schema-ref-parser soon.
Is warnings,but is can't run now, the web is blank.
There are not errors but warnings. The issue is from the
jsonref
package, see vivocha/jsonref#3. I'm planning to switch to https://github.com/APIDevTools/json-schema-ref-parser soon.
When I fix add the whole dist directory to files
"files": [
"dist",
"README.md",
"LICENSE"
],
then run
yarn start
I get the new error
Failed to compile.
Module not found: SyntaxError: D:\laragon\www\my-admin\node_modules\jsonref\package.json (directory description file): SyntaxError: D:\laragon\www\my-admin\node_modules\jsonref\package.json (directory description file): SyntaxError: Unexpected token / in JSON at position 308
ERROR in ./node_modules/@api-platform/api-doc-parser/lib/openapi3/handleJson.js 2:0-47
Module not found: SyntaxError: D:\laragon\www\my-admin\node_modules\jsonref\package.json (directory description file): SyntaxError: D:\laragon\www\my-admin\node_modules\jsonref\package.json (directory description file): SyntaxError: Unexpected token / in JSON at position 308
webpack compiled with 1 error
API Platform version(s) affected: ^3.0
Description
I create a new project,
in here is Ok. When I set the App.js
is was error,when the entrypoint is my project API also get the same error. I don't know why I create a new project can get this error.