You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #2595, I didn't want to duplicate the experiment grouping logic found in the content-server to the auth-server.
I think it makes sense to pull this base class into fxa-shared and reused in both services. However, I still think the experiment rules should still live in the respective services.
const BaseGroupingRule = require('../../../../../../fxa-shared/dist/experiments/base');It should have in theory worked because it is loading the same javascript file. However, you will get an interesting error
Uncaught TypeError: BaseGroupingRule is not a constructorwhen you try to load the content-sever webpage. After some searching it seems to be related to babel/babel#9367. Babel seems to fail loading the class that is outside the project causing the extends not to work correctly.
I tried updating our webpack config to ['@babel/preset-env', {modules: false}] since some posters said that worked for them, but it didn't work for us. If someone has some better webpack and babel chops is there anything obvious that I could be missing here?
While working on #2595, I didn't want to duplicate the experiment grouping logic found in the content-server to the auth-server.
I think it makes sense to pull this base class into fxa-shared and reused in both services. However, I still think the experiment rules should still live in the respective services.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: