iRazvan2745
iRazvan2745
Explore posts from servers
WWasp-lang
Created by brahyammm on 9/8/2024 in #đŸ™‹questions
wasp new with saas shows white page
check this message
9 replies
WWasp-lang
Created by brahyammm on 9/8/2024 in #đŸ™‹questions
wasp new with saas shows white page
9 replies
WWasp-lang
Created by brahyammm on 9/8/2024 in #đŸ™‹questions
wasp new with saas shows white page
disable ublockorigin
9 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
the design was bad
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
yeah
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
made it using the ai feature
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
i fixed it, anyways the website wasnt what i needed
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai i said export not import
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai well in /.wasp/out/sdk/wasp/dist/client/operations/index.js there is no Link export
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai link import is found in Admin.jsx not in dashboard.jsx import { useQuery, Link } from 'wasp/client/operations';
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai i removed the import line but im still getting the same error
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai import { Link } from 'wasp/client/router'; is also not being used
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai still getting the error
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai im still getting this error
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/.wasp/out/sdk/wasp/dist/client/operations/index.js' doesn't provide an export named: 'Link'
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/.wasp/out/sdk/wasp/dist/client/operations/index.js' doesn't provide an export named: 'Link'
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
it send the `
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
when sending blocks
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
Found an error with kapa
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai import { Link } from 'wasp/client/router'; ISNT used at all this is the Dashboard.jsx file
import React from 'react';
import { useQuery, useAction, getLicenses, createLicense, updateLicense } from 'wasp/client/operations';
import { Link } from 'wasp/client/router';

const DashboardPage = () => {
const { data: licenses, isLoading, error } = useQuery(getLicenses);
const createLicenseFn = useAction(createLicense);
const updateLicenseFn = useAction(updateLicense);
const [newLicenseName, setNewLicenseName] = React.useState('');
const [newLicenseNotes, setNewLicenseNotes] = React.useState('');

if (isLoading) return 'Loading...';
if (error) return 'Error: ' + error;

const handleCreateLicense = () => {
createLicenseFn({ name: newLicenseName, notes: newLicenseNotes });
setNewLicenseName('');
setNewLicenseNotes('');
};

const handleUpdateLicense = (licenseId, newName, newNotes) => {
updateLicenseFn({ licenseId, name: newName, notes: newNotes });
};

return (
<div className='p-4'>
<div className='mb-4'>
<input
type='text'
placeholder='New License Name'
value={newLicenseName}
onChange={(e) => setNewLicenseName(e.target.value)}
className='px-1 py-2 border rounded text-lg'
/>
<input
type='text'
placeholder='New License Notes'
value={newLicenseNotes}
onChange={(e) => setNewLicenseNotes(e.target.value)}
className='px-1 py-2 border rounded text-lg'
/>
<button
onClick={handleCreateLicense}
className='bg-blue-500 hover:bg-blue-700 px-2 py-2 text-white font-bold rounded'
>
Add License
</button>
</div>
{licenses.map((license) => (
<div key={license.id} className='bg-gray-100 p-4 mb-4 rounded-lg'>
<div>Name: {license.name}</div>
<div>Notes: {license.notes}</div>
<button
onClick={() => handleUpdateLicense(license.id, `${license.name} - Updated`, `${license.notes} - Updated`)}
className='bg-yellow-500 hover:bg-yellow-700 text-white font-bold py-2 px-4 rounded'
>
Update License
</button>
</div>
))}
</div>
);
}

export default DashboardPage;
import React from 'react';
import { useQuery, useAction, getLicenses, createLicense, updateLicense } from 'wasp/client/operations';
import { Link } from 'wasp/client/router';

const DashboardPage = () => {
const { data: licenses, isLoading, error } = useQuery(getLicenses);
const createLicenseFn = useAction(createLicense);
const updateLicenseFn = useAction(updateLicense);
const [newLicenseName, setNewLicenseName] = React.useState('');
const [newLicenseNotes, setNewLicenseNotes] = React.useState('');

if (isLoading) return 'Loading...';
if (error) return 'Error: ' + error;

const handleCreateLicense = () => {
createLicenseFn({ name: newLicenseName, notes: newLicenseNotes });
setNewLicenseName('');
setNewLicenseNotes('');
};

const handleUpdateLicense = (licenseId, newName, newNotes) => {
updateLicenseFn({ licenseId, name: newName, notes: newNotes });
};

return (
<div className='p-4'>
<div className='mb-4'>
<input
type='text'
placeholder='New License Name'
value={newLicenseName}
onChange={(e) => setNewLicenseName(e.target.value)}
className='px-1 py-2 border rounded text-lg'
/>
<input
type='text'
placeholder='New License Notes'
value={newLicenseNotes}
onChange={(e) => setNewLicenseNotes(e.target.value)}
className='px-1 py-2 border rounded text-lg'
/>
<button
onClick={handleCreateLicense}
className='bg-blue-500 hover:bg-blue-700 px-2 py-2 text-white font-bold rounded'
>
Add License
</button>
</div>
{licenses.map((license) => (
<div key={license.id} className='bg-gray-100 p-4 mb-4 rounded-lg'>
<div>Name: {license.name}</div>
<div>Notes: {license.notes}</div>
<button
onClick={() => handleUpdateLicense(license.id, `${license.name} - Updated`, `${license.notes} - Updated`)}
className='bg-yellow-500 hover:bg-yellow-700 text-white font-bold py-2 px-4 rounded'
>
Update License
</button>
</div>
))}
</div>
);
}

export default DashboardPage;
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai also the website its completly a blank page
54 replies
WWasp-lang
Created by iRazvan2745 on 9/6/2024 in #đŸ™‹questions
Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/home/razvan/Desktop/Licenses/
@kapa.ai its correctly imported in Dashboard.jsx
54 replies