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
This has the unintended side effect of preventing frontend build scripts from locating JavaScript files stored within an Arches instance installed in a .venvdirectory, which is favoured by the following Python dependency managers:
If Arches is installed in a virtual environment containing a dot, npm run build_development fails with the following error:
root@670418858a9a:/app# uv run npm run build_development
> build_development
> npm run eslint:check && npm run ts:check && cross-env NODE_OPTIONS=--max-old-space-size=2048 webpack --config ./webpack/webpack.config.dev.js
> eslint:check
> eslint **/src
> ts:check
> vue-tsc --noEmit
Data imported from .frontend-configuration-settings.json: {
_comment: 'This is a generated file. Do not edit directly.',
APP_ROOT: '/app/finds',
APP_RELATIVE_PATH: 'finds',
ARCHES_APPLICATIONS: [ 'finds' ],
ARCHES_APPLICATIONS_PATHS: { finds: '/app/finds' },
SITE_PACKAGES_DIRECTORY: '/app/.venv/lib/python3.11/site-packages',
PUBLIC_SERVER_ADDRESS: 'http://localhost:8000/',
ROOT_DIR: '/app/.venv/lib/python3.11/site-packages/arches',
STATIC_URL: '/static/',
WEBPACK_DEVELOPMENT_SERVER_PORT: 9000
}
asset js/reports/default.js 160 KiB [emitted] (name: reports/default)
asset css/themes/_project.js 2.27 KiB [compared for emit] (name: css/themes/_project)
asset css/themes/_project.css 597 bytes [compared for emit] (name: css/themes/_project)
Entrypoint reports/default 160 KiB = js/reports/default.js
Entrypoint css/themes/_project 2.85 KiB = css/themes/_project.css 597 bytes css/themes/_project.js 2.27 KiB
ERROR in ./finds/media/js/reports/default.js
Module not found: Error: Can't resolve 'templates/views/report-templates/default.htm' in '/app/finds/media/js/reports'resolve 'templates/views/report-templates/default.htm' in '/app/finds/media/js/reports' Parsed request is a module using description file: /app/package.json (relative path: ./finds/media/js/reports) Field 'browser' doesn't contain a valid alias configuration
resolve as module
looking formodulesin /app/node_modules
/app/node_modules/templates doesn't existERROR in ./finds/media/js/reports/default.js Module not found: Error: Can't resolve 'viewmodels/report'in'/app/finds/media/js/reports'
resolve 'viewmodels/report'in'/app/finds/media/js/reports'
Parsed request is a module
using description file: /app/package.json (relative path: ./finds/media/js/reports)
Field 'browser' doesn't contain a valid alias configuration resolve as module looking for modules in /app/node_modules /app/node_modules/viewmodels doesn't exist
webpack 5.97.1 compiled with 2 errors in 1244 ms
This can be remedied by amending the check for a dotfile, allowing us to skip dot files (such as .DS_Store), while allowing files held within a directory containing a dot:
Resolvesarchesproject#11764
The convention of naming a virtual environment "`.venv`" appears to have been adopted
by the above package managers.
The fix addresses the issue of templates in directories that contain a dot (specifically
for Arches installed with the above package managers) while ensuring that dotfiles, such
as macOS' .DS_Store (archesproject#11094), are ignored.
Resolvesarchesproject#11764
The convention of naming a virtual environment "`.venv`" appears to have been adopted
by the above package managers.
The fix addresses the issue of templates in directories that contain a dot (specifically
for Arches installed with the above package managers) while ensuring that dotfiles, such
as macOS' .DS_Store (archesproject#11094), are ignored.
When loading templates from the Django server, the path lookup utility function ignores any path containing a dot (#11094).
This has the unintended side effect of preventing frontend build scripts from locating JavaScript files stored within an Arches instance installed in a
.venv
directory, which is favoured by the following Python dependency managers:If Arches is installed in a virtual environment containing a dot,
npm run build_development
fails with the following error:This can be remedied by amending the check for a dotfile, allowing us to skip dot files (such as
.DS_Store
), while allowing files held within a directory containing a dot:The text was updated successfully, but these errors were encountered: