# Aurelia 2 aurelia/store-v1: Field 'browser' doesn't contain a valid alias configuration

**URL:** <https://discourse.aurelia.io/t/aurelia-2-aurelia-store-v1-field-browser-doesnt-contain-a-valid-alias-configuration/5045>\
**Category:** Help Requests\
**Created:** [January 15, 2023, 4:09pm UTC](https://discourse.aurelia.io/t/aurelia-2-aurelia-store-v1-field-browser-doesnt-contain-a-valid-alias-configuration/5045 "2023-01-15T16:09:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtaalbers](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/dtaalbers/32/1412_2.png) [@dtaalbers](https://discourse.aurelia.io/u/dtaalbers)\
**Post date:** [January 15, 2023, 4:09pm UTC](https://discourse.aurelia.io/t/aurelia-2-aurelia-store-v1-field-browser-doesnt-contain-a-valid-alias-configuration/5045/1 "2023-01-15T16:09:14Z")

</div>

I am trying to add aurelia store to an Aurelia 2 project. With the following configuration (from [Configuration and Setup - The Aurelia 2 Docs](https://docs.aurelia.io/aurelia-packages/store/configuration-and-setup)):

```auto
import { I18nConfiguration } from '@aurelia/i18n';
import { RouterConfiguration } from '@aurelia/router';
import { StoreConfiguration } from '@aurelia/store-v1';
import Aurelia from 'aurelia';
import Fetch from 'i18next-fetch-backend';
import { initialState } from './infra/store/state';
import { MyApp } from './my-app';

Aurelia.register(
    RouterConfiguration.customize({
        useUrlFragmentHash: false
    })
)
    .register(
        I18nConfiguration.customize((options) => {
            options.initOptions = {
                plugins: [Fetch],
                backend: {
                    loadPath: '/locales/{{lng}}/{{ns}}.json'
                },
                lng: 'nl',
                fallbackLng: 'en',
                debug: false
            };
        })
    )
    .register(StoreConfiguration.withInitialState(initialState))
    .app(MyApp)
    .start();

```

I am getting the following error:

```auto
ERROR in ./node_modules/@aurelia/store-v1/dist/esm/index.mjs 7:0-66
Module not found: Error: Can't resolve 'rxjs/operators' in '/Users/the-directory-to-the-aurelia-project-root/node_modules/@aurelia/store-v1/dist/esm'
Did you mean 'index.js'?
BREAKING CHANGE: The request 'rxjs/operators' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve 'rxjs/operators' in '/Users/the-directory-to-the-aurelia-project-root/node_modules/@aurelia/store-v1/dist/esm'
  Parsed request is a module
  using description file: /Users/the-directory-to-the-aurelia-project-root/node_modules/@aurelia/store-v1/package.json (relative path: ./dist/esm)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      looking for modules in /Users/the-directory-to-the-aurelia-project-root/src
        /Users/the-directory-to-the-aurelia-project-root/src/rxjs doesn't exist
      looking for modules in /Users/the-directory-to-the-aurelia-project-root/dev-app
        /Users/the-directory-to-the-aurelia-project-root/dev-app/rxjs doesn't exist
      /Users/the-directory-to-the-aurelia-project-root/node_modules/@aurelia/store-v1/dist/esm/node_modules doesn't exist or is not a directory
      /Users/the-directory-to-the-aurelia-project-root/node_modules/@aurelia/store-v1/dist/node_modules doesn't exist or is not a directory
      /Users/the-directory-to-the-aurelia-project-root/node_modules/@aurelia/store-v1/node_modules doesn't exist or is not a directory
      /Users/the-directory-to-the-aurelia-project-root/node_modules/@aurelia/node_modules doesn't exist or is not a directory
      /Users/the-directory-to-the-aurelia-project-root/node_modules/node_modules doesn't exist or is not a directory
      looking for modules in /Users/the-directory-to-the-aurelia-project-root/node_modules
        existing directory /Users/the-directory-to-the-aurelia-project-root/node_modules/rxjs
          using description file: /Users/the-directory-to-the-aurelia-project-root/node_modules/rxjs/package.json (relative path: .)
            using description file: /Users/the-directory-to-the-aurelia-project-root/node_modules/rxjs/package.json (relative path: ./operators)
              Field 'browser' doesn't contain a valid alias configuration
              /Users/the-directory-to-the-aurelia-project-root/node_modules/rxjs/operators is not a file
      /Users/my-user/Workplace/Repositories/folder/node_modules doesn't exist or is not a directory
      /Users/my-user/Workplace/Repositories/node_modules doesn't exist or is not a directory
      /Users/my-user/Workplace/node_modules doesn't exist or is not a directory
      /Users/my-user/node_modules doesn't exist or is not a directory
      /Users/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
 @ ./src/main.ts 3:0-55 22:14-49

webpack 5.75.0 compiled with 1 error in 4802 ms

```

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![dwaynecharrington](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/dwaynecharrington/32/11_2.png) [@dwaynecharrington](https://discourse.aurelia.io/u/dwaynecharrington)\
**Post date:** [January 15, 2023, 10:50pm UTC](https://discourse.aurelia.io/t/aurelia-2-aurelia-store-v1-field-browser-doesnt-contain-a-valid-alias-configuration/5045/2 "2023-01-15T22:50:54Z")

</div>

What bundler are you using in your application?

---

<div class="post-metadata">

**Author:** ![dtaalbers](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/dtaalbers/32/1412_2.png) [@dtaalbers](https://discourse.aurelia.io/u/dtaalbers)\
**Post date:** [January 16, 2023, 6:49am UTC](https://discourse.aurelia.io/t/aurelia-2-aurelia-store-v1-field-browser-doesnt-contain-a-valid-alias-configuration/5045/3 "2023-01-16T06:49:30Z")

</div>

Thanks for the response! I am using webpack.

---

<div class="post-metadata">

**Author:** ![dwaynecharrington](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/dwaynecharrington/32/11_2.png) [@dwaynecharrington](https://discourse.aurelia.io/u/dwaynecharrington)\
**Post date:** [January 16, 2023, 12:38pm UTC](https://discourse.aurelia.io/t/aurelia-2-aurelia-store-v1-field-browser-doesnt-contain-a-valid-alias-configuration/5045/4 "2023-01-16T12:38:50Z")

</div>

Let me see if I can reproduce this and get a solution for you.

---

<div class="post-metadata">

**Author:** ![dtaalbers](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/dtaalbers/32/1412_2.png) [@dtaalbers](https://discourse.aurelia.io/u/dtaalbers)\
**Post date:** [January 18, 2023, 10:29am UTC](https://discourse.aurelia.io/t/aurelia-2-aurelia-store-v1-field-browser-doesnt-contain-a-valid-alias-configuration/5045/5 "2023-01-18T10:29:30Z")

</div>

@dwaynecharrington Any luck with the reproduction? Or can I assist with anything?

---

<div class="post-metadata">

**Author:** ![dtaalbers](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/dtaalbers/32/1412_2.png) [@dtaalbers](https://discourse.aurelia.io/u/dtaalbers)\
**Post date:** [April 4, 2023, 1:04pm UTC](https://discourse.aurelia.io/t/aurelia-2-aurelia-store-v1-field-browser-doesnt-contain-a-valid-alias-configuration/5045/6 "2023-04-04T13:04:57Z")

</div>

Any luck @dwaynecharrington ?
