Atlassian Front-End Server utilities

https://bitbucket.org/atlassianlabs/fe-server/src/master/

Are these utilities for public use? It sounds like this would make i18n + react very simple, but I cannot get it to work. A barebones example app would be great to determine what is missing.

1 Like

Re: public use – it is published under an Apache license. :slight_smile:

Re: example app – lets ask the author. :slight_smile: @madamczak can you help out @mike1 with that?

2 Likes

I just need to see what part of the puzzle I am missing. I will try to show you guys an example of what I have with atlas-create-jira-plugin soon - but in the meantime if someone happens to have one thats great.

1 Like

HI @mike1, the FE NPM packages are indeed intended to be publicly used to build Atlassian Server products and plugins. You should be able to find the manual in each of the README.md files or on the NPM page:

You should also try checking the Webpack WRM package if you are not using it yet. It will help you with building modern Front-End applications:

Let me know if you have any further questions about the usage.

Thanks,
Maciej

2 Likes

Thanks for clarifying its status. Through the process of creating a blank plugin I have translations working, so it must be a problem in my other project. Thanks again!

I’m having the same issue rn.
There seems to be an issue with webpack in dev mode when I18n.getText translates into something like i18n__WEBPACK_IMPORTED_MODULE_10__["I18n"].getText.
The production mode seems to be working fine, not sure if it’s related to minification.

Hi @a.belostotskiy, are you by any chance using Babel 7?

If so, this a known bug that we have found this week and we will have to fix it in both webresource Java plugin and in the properties loader NPM package. I have just raised an issue for that, so you can track the status:

As for now, the only alternative is to temporarily downgrade your code to use Babel 6 if this is possible.

Thanks,
Maciej

1 Like

Yep, looks like it.
I’ve added @babel/plugin-transform-modules-commonjs babel plugin in dev mode for now, which seems to be a valid workaround aswell.

1 Like