For the last days, after trying different approach, I’m running into this issue : import error [M0009], file “/Users/blabla/dev/dfinity/app/.dfx/local/canisters/idl/be2us-64aaa-aaaaa-qaabq-cai.did” does not exist
Here is my dfx.json file
{
“canisters”: {
“contact”: {
“main”: “src/app_server/Models/main.mo”,
“type”: “motoko”
},
"app_server": {
"main": "src/app_server/main.mo",
"type": "motoko"
},
"app_frontend": {
"frontend": {
"entrypoint": "src/app_frontend/src/index.html"
},
"source": [
"src/app_frontend/assets",
"dist/app_frontend/"
],
"type": "assets"
}
},
“defaults”: {
“build”: {
“args”: “”,
“packtool”: “mops sources”
}
},
“output_env_file”: “.env”,
“version”: 1
}
My contact actor
import Debug “mo:base/Debug”;
import Array “mo:base/Array”;
actor {
type ContactType = {
name : Text;
email : Text;
imgUrl : Text;
title : Text;
state : Text;
};
stable var contactStorage : [ContactType] = [];
public func listContact(page : Nat8) : async [ContactType] {
Debug.print("listContact in contact Models");
contactStorage;
};
I have deleted the .dfx folder without success, tried to change the dependency order, move the contact folder elsewhere. My contact canister contains a simple actor that I have minimize for debugging and still no success.
Last night, I tried dfx deploy --playground and boom, it deployed without error !!!
Can’t really see what is going on here, my next step would be to create a new project and copy all files in the new project.
Any thought on what is the problem ? Thank you