Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Angular

Has anyone been able to get an Angular project to launch on the shared dev server?
I was trying the CSR tutorial.

When I route to the extension/Angular/Main, I seem to get this error:

Traceback (most recent call last):
File "/home/user/sdk/.env/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
result = await result
^^^^^^^^^^^^
File "/home/user/sdk/.env/lib/python3.11/site-packages/tornado/web.py", line 2688, in get
self.absolute_path = self.validate_absolute_path(self.root, absolute_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/sdk/.env/lib/python3.11/site-packages/tornado/web.py", line 2900, in validate_absolute_path
raise HTTPError(404)
tornado.web.HTTPError: HTTP 404: Not Found

Also, when trying to build the project, there is a bundle error after adding q2-tecton-sdk and zone.js to the polyfills.ts file:
✘ [ERROR] bundle initial exceeded maximum budget. Budget 1.00 MB was not met by 314.32 kB with a total of 1.31 MB.

Also, locally I've installed node version 22.14.0, but when running q2 run, it seems to try to build with v14.21.3 and I get this error:

2025-03-12T13:28:17.144 q2_sdk.general INFO bash -c "cd Angular/frontend && source /opt/nvm/nvm.sh || true && nvm install 14 && nvm use 14 && yarn && yarn run build"
2025-03-12T13:28:17.145 asyncio DEBUG run shell command 'bash -c "cd Angular/frontend && source /opt/nvm/nvm.sh || true && nvm install 14 && nvm use 14 && yarn && yarn run build"'
2025-03-12T13:28:17.146 asyncio DEBUG process 'bash -c "cd Angular/frontend && source /opt/nvm/nvm.sh || true && nvm install 14 && nvm use 14 && yarn && yarn run build"' created: pid 525352
v14.21.3 is already installed.
Now using node v14.21.3 (npm v6.14.18)
Now using node v14.21.3 (npm v6.14.18)
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
error @angular/common@19.2.1: The engine "node" is incompatible with this module. Expected version "^18.19.1 || ^20.11.1 || >=22.0.0". Got "14.21.3"
error Found incompatible module.

Votes Newest

Answers


Hello Jenny,

For rich client side development like this, I generally recommend using local development as the compute required for building and running this is higher than server side rendering. Doing this on a shared resource will not run near as smoothly compared to running it on your local computer. See docs on setting up local development here: https://docs.q2developer.com/docs/setup/local/index.html

To answer your question though, the command to use node 14 is in package.json file and you can adjust that there.

Thank you,
Trey Teter

Posted one year ago
Trey Teter
489 × 4 Administrator
98 Views
1 Answer
one year ago
one year ago
Tags