Ivan Dwijaya • over 3 years ago
Question regarding @forge/api with webpack
Hi All,
So, I'm trying to build a game using webpack. But, unfortunately, I got an error like this
```
Uncaught (in promise) TypeError: proxy is undefined
createProxyFetch webpack://atlassian-dev-unleashed/./node_modules/@forge/api/out/api/fetch.js?:17
wrapRequestProduct webpack://atlassian-dev-unleashed/./node_modules/@forge/api/out/api/index.js?:22
```
And, below is the test code I used to get that error.
```
import api, { route } from '@forge/api';
const findProjects = async () => {
const user = api.asUser();
const endpoint = route('/rest/api/2/project');
const response = await user.requestJira(endpoint);
console.log(response);
};
(async () => {
await findProjects();
})().then(() => console.log('done'));
```
So, I'm just wondering, whether the issue is because I'm using webpack? If that's the case, is there any workaround for this issue? there should be something I missed in here, so any feedback is definitely appreciated.
Regards
Ivan
Comments are closed.

2 comments
Dani Ratner Manager • over 3 years ago
Hi Ivan,
Thanks for posting this. In order to get a faster and direct response from the Atlassian team could you please post this in the Developer Forum here: https://community.developer.atlassian.com/
Thanks!
Ivan Dwijaya • over 3 years ago
Hi Dani,
Thanks for following up. I have posted the question in there just now. And, currently, the post is under review (to make sure it's not a spam) by their staff member.
Feel free to close this discussion as I will continue the question from the atlassion dev forum.
Thanks and have a nice day.