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
Yes. When trying to use create-elm-app with npx, it failed with url resolution for string replacement of favicon and manifest.
URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'
at decodeURIComponent (<anonymous>)
at decode_param (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:574:18)
at next (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:317:13)
at /home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:335:12)
at next (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:275:10)
at query (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/middleware/query.js:45:5)
at Layer.handle [as handle_request] (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:317:13)
at /home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/%PUBLIC_URL%/manifest.json'
at decodeURIComponent (<anonymous>)
at decode_param (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:574:18)
at next (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:317:13)
at /home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:335:12)
at next (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:275:10)
at query (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/middleware/query.js:45:5)
at Layer.handle [as handle_request] (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:317:13)
at /home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/as/.npm/_npx/22659/lib/node_modules/elm-app/node_modules/express/lib/router/index.js:335:12)
Environment
node -v: v11.14.0
npm -v: 6.10.1
yarn --version (if you use Yarn):
npm ls create-elm-app -g (if you haven’t ejected): empty (using npx)
Then, specify:
Operating system: Ubuntu 18.04
Browser and version (if relevant): Not relevant
I'm also using a node package manager called fnm (1.12.0). The behavior does not occur when create-elm-app is installed globally, instead of npx. That's why I would think it's related to npx, but I wanted to mention this.
Steps to Reproduce
npx create-elm-app@latest test-project
cd test-project
npx elm-app@latest start
Expected Behavior
It's starting the application without errors/warnings
Actual Behavior
It's starting, but there are issues shown in the console. The issues are related to string replacement.
What else to say
I think this could be specific to npx and maybe there is no way to solve it. But maybe there is? :)
The text was updated successfully, but these errors were encountered:
Is this a bug report?
Yes. When trying to use
create-elm-app
with npx, it failed with url resolution for string replacement of favicon and manifest.Environment
node -v
: v11.14.0npm -v
: 6.10.1yarn --version
(if you use Yarn):npm ls create-elm-app -g
(if you haven’t ejected): empty (using npx)Then, specify:
I'm also using a node package manager called
fnm
(1.12.0). The behavior does not occur whencreate-elm-app
is installed globally, instead ofnpx
. That's why I would think it's related tonpx
, but I wanted to mention this.Steps to Reproduce
npx create-elm-app@latest test-project
cd test-project
npx elm-app@latest start
Expected Behavior
It's starting the application without errors/warnings
Actual Behavior
It's starting, but there are issues shown in the console. The issues are related to string replacement.
What else to say
I think this could be specific to
npx
and maybe there is no way to solve it. But maybe there is? :)The text was updated successfully, but these errors were encountered: