-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
OS: Mac OS X El Capitan 10.11.6
Browser: Firefox 52.0.2 (64 bit)
Basis tools: 1.10.2
Steps:
- Use SVG sprites file explicitly:
basis.resource('/app/ui/base/svg/sprites.svg').fetch().startUse(); - Use SVG symbol in a template:
<b:svg use="#icon-calendar"/>or<b:svg src="/app/ui/base/svg/sprites.svg" use="#icon-calendar"/> - Important note. basis server rewrite rule is used:
"^/folder/(.*)$": "http://localhost:8099/index.html [P, QSA]" - It works fine if use "http://localhost:8099" url but crashes in case of "http://localhost:8099/folder/123"
Please see https://github.com/sm0g/basis-server-issue as an example.
Expect to see an icon but basis server crashes. Please see logs:
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.join (path.js:1211:7)
at absolutePath (/usr/local/lib/node_modules/basisjs-tools/lib/server/modules/files.js:226:34)
at Object.absolutePath (/usr/local/lib/node_modules/basisjs-tools/lib/server/modules/files.js:233:12)
at resolvePathnameFile (/usr/local/lib/node_modules/basisjs-tools/lib/server/modules/http-server.js:193:26)
at Object.defaultRequestHandler [as fn] (/usr/local/lib/node_modules/basisjs-tools/lib/server/modules/http-server.js:275:5)
at processRequest (/usr/local/lib/node_modules/basisjs-tools/lib/server/modules/http-server.js:324:16)
at next (/usr/local/lib/node_modules/basisjs-tools/lib/server/modules/http-server.js:326:9)
at Object.virtualPathMiddleware [as fn] (/usr/local/lib/node_modules/basisjs-tools/lib/server/modules/http/virtualPath.js:37:16)
at processRequest (/usr/local/lib/node_modules/basisjs-tools/lib/server/modules/http-server.js:324:16)
P.S.
It works normally in Chrome and IE11.
In build mode icon is just not displayed.
Reactions are currently unavailable