-
Notifications
You must be signed in to change notification settings - Fork 2
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
We could not create the data directory #13
Comments
I'm not so sure about the error, how are you executing the code? is it via sea or is it direct? @etornam45 Also, does this happen with bun/deno as well? |
I don't know anything about "sea or direct" but I tried using bun and it worked, I haven't tried deno yes |
I'm having the same issue. It seems related to this thread: https://stackoverflow.com/questions/66374105/opening-webview2-in-wpf-causes-system-unauthorizedaccessexception-while-calling My specifics:
my code: import { Application } from '@webviewjs/webview';
const app = new Application();
const window = app.createBrowserWindow();
const webview = window.createWebview();
webview.loadUrl('https://nodejs.org');
app.run(); Error log:
|
Workaround: Set the environment variable WEBVIEW2_USER_DATA_FOLDER to a writeable location. import { Application } from '@webviewjs/webview';
process.env.WEBVIEW2_USER_DATA_FOLDER = process.cwd();
const app = new Application();
const window = app.createBrowserWindow();
const webview = window.createWebview();
webview.loadUrl('https://nodejs.org');
app.run(); |
This is the error I had by running this code
The text was updated successfully, but these errors were encountered: