Closed dextermb closed 6 years ago
Hi!
Thanks for being part of the Font Awesome Community.
Could you please open this issue in the Font Awesome Pro repo at https://github.com/FortAwesome/Font-Awesome-Pro?
If you don't have access to the above repository, please make sure you have linked your Font Awesome Account to your GitHub account at https://fontawesome.com/account/services
@tagliala Can do!
i got similar issue when run npm run deploy and the command stop when processing all.min.css
[publish]
[publish] ERROR in ./node_modules/@fortawesome/fontawesome-free/css/all.min.css
[publish] Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
[publish] ModuleParseError: Module parse failed: Unexpected character '' (1:4)
[publish] You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
[publish] (Source code omitted for this binary file)
[publish] at handleParseError (D:\WebstormProjects\customer-frontend-flareact\node_modules\webpack\lib\NormalModule.js:469:19)
[publish] at D:\WebstormProjects\customer-frontend-flareact\node_modules\webpack\lib\NormalModule.js:503:5
[publish] at D:\WebstormProjects\customer-frontend-flareact\node_modules\webpack\lib\NormalModule.js:358:12
[publish] at D:\WebstormProjects\customer-frontend-flareact\node_modules\loader-runner\lib\LoaderRunner.js:373:3
[publish] at iterateNormalLoaders (D:\WebstormProjects\customer-frontend-flareact\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
[publish] at Array.<anonymous> (D:\WebstormProjects\customer-frontend-flareact\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
[publish] at Storage.finished (D:\WebstormProjects\customer-frontend-flareact\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
[publish] at D:\WebstormProjects\customer-frontend-flareact\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
[publish] at D:\WebstormProjects\customer-frontend-flareact\node_modules\graceful-fs\graceful-fs.js:123:16
[publish] at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
[publish] webpack --config node_modules/flareact/configs/webpack.client.config.js --out ./out --mode production && wrangler publish exited with code 2
[
{
command: {
command: 'webpack --config node_modules/flareact/configs/webpack.client.config.js --out ./out --mode production && wrangler publish',
name: 'publish',
prefixColor: '',
env: [Object]
},
index: 0,
exitCode: 2
}
]
i installed postcss and postcss-loader, but it still failed to deploy.
Below is my flareact.config.js
module.exports = {
webpack: (config, options) => {
config.module.rules.push(
{
test: /\.(svg)$/,
use: [
{ loader: "file-loader", options: {} },
{ loader: "svg-url-loader", options: {} },
],
},
{
test: /\.(ttf|eot|png|jpg|gif|ico)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
use: [
{ loader: "file-loader", options: {} },
{
loader: "url-loader",
options: {
limit: 10000,
},
},
],
}
);
config.node = {
fs: "empty",
};
return config;
},
};
Hi @nogamenofun98
Please open a new issue by filling out a bug report template
Please also provide a reproducible reduced test case, that will help in debugging. Please reduce the number of dependencies and third-party script/stylesheets to the minimum possible
Describe the problem
When attempting to load in CSS the way shown in the
next-css
example errors are thrown. They seem to be down to paths?Errors
These are not all the errors as some seem to be repeated.
Initial error
Font path error
This seems to happen for multiple fonts
SVG path error
This seems to happen for multiple SVGs
What did you expect?
I'd expect to be able to import the CSS without having any issues. I am using the CSS library and React as I wanted to write my own wrapper for the icons; is there a way to import ALL icons from the Pro package into
react-fontawesome
?What version and implementation are you using?
Version:
^5.2.0
Bug report checklist