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

une erreur lors de la compilation #14

Open
Amougou22 opened this issue Sep 14, 2022 · 1 comment
Open

une erreur lors de la compilation #14

Amougou22 opened this issue Sep 14, 2022 · 1 comment

Comments

@Amougou22
Copy link

{
"resource": "/c:/Lightning Web Components/HelloWorldLightningWebComponent/force-app/main/default/lwc/helloWord/helloWord.js",
"owner": "generated_diagnostic_collection_name#2",
"severity": 8,
"message": "LWC1007: c:\Lightning Web Components\HelloWorldLightningWebComponent\helloWord.js: Only one default export allowed per module. (8:0)",
"source": "lwc",
"startLineNumber": 8,
"startColumn": 1,
"endLineNumber": 8,
"endColumn": 2147483648
}

@profprof-hub
Copy link

I have solved that issue by changing the access modifier of the listings() method from protected function listings (){
return $this->hasMany(Listing::class, 'user_id');
} to public function listings (){ return $this->hasMany (Listing::class, 'user_id'); } in the User Model.

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

2 participants