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

[Bug] Having error with latest create-leo-app #941

Open
zklimaleo opened this issue Oct 21, 2024 · 0 comments
Open

[Bug] Having error with latest create-leo-app #941

zklimaleo opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zklimaleo
Copy link

🐛 Bug Report

Follow guide to run create-leo-app but encounter error during run dev. Noticed the update of @provablehq/sdk to 0.7.0. Fallback to 0.6.13 works.

Steps to Reproduce

Code snippet to reproduce

npm create leo-app@latest
cd aleo-project
npm install
npm run dev

Stack trace & error message

Failed to resolve import "core-js/proposals/json-parse-with-source.js" from "node_modules/@provablehq/sdk/dist/testnet/browser.js?v=cc7fe778". Does the file exist?
6:05:15 PM [vite] Internal server error: Failed to resolve import "core-js/proposals/json-parse-with-source.js" from "node_modules/@provablehq/sdk/dist/testnet/browser.js?v=cc7fe778". Does the file exist?
  Plugin: vite:import-analysis
  File: /aleo-project/node_modules/@provablehq/sdk/dist/testnet/browser.js?v=cc7fe778:1:9
  1  |  import 'core-js/proposals/json-parse-with-source.js';
     |          ^
  2  |  import { ViewKey, Address, PrivateKeyCiphertext, PrivateKey, RecordCiphertext, Program, Transaction, ProvingKey, VerifyingKey, ProgramManager as ProgramManager$1, RecordPlaintext, verifyFunctionExecution, Metadata } from '@provablehq/wasm/testnet.js';
  3  |  export { Address, ExecutionResponse, Field, Execution as FunctionExecution, OfflineQuery, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager as ProgramManagerBase, ProvingKey, RecordCiphertext, RecordPlaintext, Signature, Transaction, VerifyingKey, ViewKey, initThreadPool, verifyFunctionExecution } from '@provablehq/wasm/testnet.js';

Expected Behavior

Able to run dev without errors

Your Environment

  • create-leo-app Version - 0.7.3
  • Provable SDK Version - 0.7.0
  • Computer OS - MacOS Sequoia 15.0.1
@zklimaleo zklimaleo added the bug Something isn't working label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant