military-pinkM
Refine3y ago
15 replies
military-pink

stringify import error

hello, I'm trying the refine tutorial : https://refine.dev/docs/tutorial/understanding-dataprovider/create-dataprovider/
add import as :
import { stringify } from "query-string"

but some build errors appeared:

Compiling...
Failed to compile.

Attempted import error: 'stringify' is not exported from 'query-string' (imported as 'u').
ERROR in ./node_modules/@pankod/refine-simple-rest/dist/esm/index.js 93:32-33
export 'stringify' (imported as 'u') was not found in 'query-string' (possible exports: default)

ERROR in ./node_modules/@pankod/refine-simple-rest/dist/esm/index.js 93:40-41
export 'stringify' (imported as 'u') was not found in 'query-string' (possible exports: default)

ERROR in ./node_modules/@pankod/refine-simple-rest/dist/esm/index.js 107:35-36
export 'stringify' (imported as 'u') was not found in 'query-string' (possible exports: default)

ERROR in ./node_modules/@pankod/refine-simple-rest/dist/esm/index.js 193:22-23
export 'stringify' (imported as 'u') was not found in 'query-string' (possible exports: default)

ERROR in ./node_modules/@pankod/refine-simple-rest/dist/esm/index.js 198:20-21
export 'stringify' (imported as 'u') was not found in 'query-string' (possible exports: default)

ERROR in ./node_modules/@pankod/refine-simple-rest/dist/esm/index.js 200:24-25
export 'stringify' (imported as 'u') was not found in 'query-string' (possible exports: default)

ERROR in ./node_modules/@pankod/refine-simple-rest/dist/esm/index.js 230:0-118
export 'stringify' (reexported as 'stringify') was not found in 'query-string' (possible exports: default)

webpack compiled with 7 errors
ERROR in src/data-provider.ts:23:64
| ^^^
Was this page helpful?