sdk icon indicating copy to clipboard operation
sdk copied to clipboard

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

Open zklimaleo opened this issue 1 year ago • 0 comments

🐛 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 avatar Oct 21 '24 10:10 zklimaleo