Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sql-lint import in browser occurs error #257

Open
Disimasa opened this issue Nov 21, 2023 · 0 comments
Open

Sql-lint import in browser occurs error #257

Disimasa opened this issue Nov 21, 2023 · 0 comments

Comments

@Disimasa
Copy link

Hi! I really want to use your lib in my project on SvelteKit. However when I try to import lib on my client side, there is error "ReferenceError: process is not defined". I didn't pass any info about DB, I just want to lint sql query sintaksis. Also on server-side import works well.

As I know "process is not defined" error usually occurs when there's a try to use some server-side variables on client-side. However I guess that when I don't connect to DB, there shouldn't be such variables. So is there an opportunity to exec your lib in client-side? I apperciate your help!

Import script:

import sqlLint from 'sql-lint'

Error log in DevTools:

image

Code in utils.js:109:1:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant